Fix imports in TcpStream::local_addr docs example
Add a missing import and remove unused imports
This commit is contained in:
parent
7f9e653a29
commit
6482ee7cde
1 changed files with 1 additions and 1 deletions
|
@ -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...");
|
||||
|
|
Loading…
Reference in a new issue