Touch up a few examples

This commit is contained in:
Alex Crichton
2017-09-11 08:43:11 -07:00
parent a611f6ec30
commit 85257e19af
2 changed files with 23 additions and 5 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ fn main() {
let mut l = Core::new().unwrap();
let handle = l.handle();
let socket = UdpSocket::bind(&addr, &handle).unwrap();
println!("Listening on: {}", addr);
println!("Listening on: {}", socket.local_addr().unwrap());
// Next we'll create a future to spawn (the one we defined above) and then
// we'll run the event loop by running the future.