提交 6482ee7c 编写于 作者: L leavehouse 提交者: GitHub

Fix imports in TcpStream::local_addr docs example

Add a missing import and remove unused imports
上级 7f9e653a
......@@ -194,7 +194,7 @@ pub fn peer_addr(&self) -> io::Result<SocketAddr> {
/// # 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...");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册