2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-06-08 07:11:33 +00:00

Fix failing doc example

This commit is contained in:
Stjepan Glavina 2019-10-09 14:49:31 +02:00
parent cbd458b1db
commit c890de2c52

View file

@ -38,9 +38,8 @@ cfg_if! {
/// # /// #
/// use async_std::net::ToSocketAddrs; /// use async_std::net::ToSocketAddrs;
/// ///
/// let addr1 = "localhost:8080".to_socket_addrs().await?.next().unwrap(); /// let addr = "localhost:8080".to_socket_addrs().await?.next().unwrap();
/// let addr2 = ("127.0.0.1", 8080).to_socket_addrs().await?.next().unwrap(); /// println!("resolved: {:?}", addr);
/// assert_eq!(addr1, addr2);
/// # /// #
/// # Ok(()) }) } /// # Ok(()) }) }
/// ``` /// ```