Fix imports in TcpStream::local_addr docs example

Add a missing import and remove unused imports
This commit is contained in:
leavehouse 2017-09-28 21:49:00 -05:00 committed by GitHub
parent 7f9e653a29
commit 6482ee7cde

View file

@ -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...");