We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbd458b commit c890de2Copy full SHA for c890de2
src/net/addr.rs
@@ -38,9 +38,8 @@ cfg_if! {
38
/// #
39
/// use async_std::net::ToSocketAddrs;
40
///
41
-/// let addr1 = "localhost:8080".to_socket_addrs().await?.next().unwrap();
42
-/// let addr2 = ("127.0.0.1", 8080).to_socket_addrs().await?.next().unwrap();
43
-/// assert_eq!(addr1, addr2);
+/// let addr = "localhost:8080".to_socket_addrs().await?.next().unwrap();
+/// println!("resolved: {:?}", addr);
44
45
/// # Ok(()) }) }
46
/// ```
0 commit comments