diff options
| author | leavehouse <heavelouse@gmail.com> | 2017-09-28 21:49:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-28 21:49:00 -0500 |
| commit | 6482ee7cde565a432980036abe521e86bff432bd (patch) | |
| tree | 7ba61e8f754095be3eb80343c68b88ca5e3258d4 /src/libstd | |
| parent | 7f9e653a299209c17d0093934973fc121e972d29 (diff) | |
| download | rust-6482ee7cde565a432980036abe521e86bff432bd.tar.gz rust-6482ee7cde565a432980036abe521e86bff432bd.zip | |
Fix imports in TcpStream::local_addr docs example
Add a missing import and remove unused imports
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/net/tcp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs index 2497f38f38c..cf3b354847c 100644 --- a/src/libstd/net/tcp.rs +++ b/src/libstd/net/tcp.rs @@ -194,7 +194,7 @@ impl TcpStream { /// # Examples /// /// ```no_run - /// use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4, TcpStream}; + /// use std::net::{IpAddr, Ipv4Addr, TcpStream}; /// /// let stream = TcpStream::connect("127.0.0.1:8080") /// .expect("Couldn't connect to the server..."); |
