From 85257e19af1a1fa0714a4c58297755f374cef949 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 11 Sep 2017 08:43:11 -0700 Subject: Touch up a few examples --- examples/echo-udp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/echo-udp.rs') 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. -- cgit v1.2.3