mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
Fix failing doc example
This commit is contained in:
parent
cbd458b1db
commit
c890de2c52
1 changed files with 2 additions and 3 deletions
|
@ -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(()) }) }
|
||||
/// ```
|
||||
|
|
Loading…
Reference in a new issue