Skip to content

Commit 6482ee7

Browse files
authored
Fix imports in TcpStream::local_addr docs example
Add a missing import and remove unused imports
1 parent 7f9e653 commit 6482ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/net/tcp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ impl TcpStream {
194194
/// # Examples
195195
///
196196
/// ```no_run
197-
/// use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4, TcpStream};
197+
/// use std::net::{IpAddr, Ipv4Addr, TcpStream};
198198
///
199199
/// let stream = TcpStream::connect("127.0.0.1:8080")
200200
/// .expect("Couldn't connect to the server...");

0 commit comments

Comments
 (0)