From c890de2c52da834be295cb849f81d71a74bf4e21 Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Wed, 9 Oct 2019 14:49:31 +0200 Subject: [PATCH] Fix failing doc example --- src/net/addr.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/net/addr.rs b/src/net/addr.rs index 01c58fd..64b22cf 100644 --- a/src/net/addr.rs +++ b/src/net/addr.rs @@ -38,9 +38,8 @@ cfg_if! { /// # /// use async_std::net::ToSocketAddrs; /// -/// let addr1 = "localhost:8080".to_socket_addrs().await?.next().unwrap(); -/// let addr2 = ("127.0.0.1", 8080).to_socket_addrs().await?.next().unwrap(); -/// assert_eq!(addr1, addr2); +/// let addr = "localhost:8080".to_socket_addrs().await?.next().unwrap(); +/// println!("resolved: {:?}", addr); /// # /// # Ok(()) }) } /// ```