Skip to content

Commit c890de2

Browse files
author
Stjepan Glavina
committed
Fix failing doc example
1 parent cbd458b commit c890de2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/net/addr.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ cfg_if! {
3838
/// #
3939
/// use async_std::net::ToSocketAddrs;
4040
///
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);
41+
/// let addr = "localhost:8080".to_socket_addrs().await?.next().unwrap();
42+
/// println!("resolved: {:?}", addr);
4443
/// #
4544
/// # Ok(()) }) }
4645
/// ```

0 commit comments

Comments
 (0)