Fix typo in doc ToSocketAddrs example.

This commit is contained in:
Corey Farwell 2017-08-30 22:03:03 -04:00
parent 7eeac1b814
commit 396fc111e1

View File

@ -767,7 +767,7 @@ impl hash::Hash for SocketAddrV6 {
///
/// let stream = TcpStream::connect(("127.0.0.1", 443));
/// // or
/// let stream = TcpStream::connect("127.0.0.1.443");
/// let stream = TcpStream::connect("127.0.0.1:443");
/// // or
/// let stream = TcpStream::connect((Ipv4Addr::new(127, 0, 0, 1), 443));
/// ```