Skip to content

Commit

Permalink
Fix imports in TcpStream::local_addr docs example
Browse files Browse the repository at this point in the history
Add a missing import and remove unused imports
  • Loading branch information
leavehouse committed Sep 29, 2017
1 parent 7f9e653 commit 6482ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/net/tcp.rs
Expand Up @@ -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...");
Expand Down

0 comments on commit 6482ee7

Please sign in to comment.