Fix imports in TcpStream::local_addr docs example
Add a missing import and remove unused imports
This commit is contained in:
@@ -194,7 +194,7 @@ impl TcpStream {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4, TcpStream};
|
/// use std::net::{IpAddr, Ipv4Addr, TcpStream};
|
||||||
///
|
///
|
||||||
/// let stream = TcpStream::connect("127.0.0.1:8080")
|
/// let stream = TcpStream::connect("127.0.0.1:8080")
|
||||||
/// .expect("Couldn't connect to the server...");
|
/// .expect("Couldn't connect to the server...");
|
||||||
|
|||||||
Reference in New Issue
Block a user