summaryrefslogtreecommitdiffstats
path: root/examples/echo-udp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/echo-udp.rs')
-rw-r--r--examples/echo-udp.rs2
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.