diff options
author | Alex Crichton <alex@alexcrichton.com> | 2017-09-11 08:43:11 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2017-09-11 08:43:11 -0700 |
commit | 85257e19af1a1fa0714a4c58297755f374cef949 (patch) | |
tree | e644d463794634ac2e8ceb99c7da93db3b48c3d2 /examples/echo-udp.rs | |
parent | a611f6ec3043e63be340341cd97d17892ec6513c (diff) |
Touch up a few examples
Diffstat (limited to 'examples/echo-udp.rs')
-rw-r--r-- | examples/echo-udp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/echo-udp.rs b/examples/echo-udp.rs index 98f879d3..f555e609 100644 --- a/examples/echo-udp.rs +++ b/examples/echo-udp.rs @@ -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. |