Skip to content

Commit 396fc11

Browse files
committed
Fix typo in doc ToSocketAddrs example.
1 parent 7eeac1b commit 396fc11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/net/addr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ impl hash::Hash for SocketAddrV6 {
767767
///
768768
/// let stream = TcpStream::connect(("127.0.0.1", 443));
769769
/// // or
770-
/// let stream = TcpStream::connect("127.0.0.1.443");
770+
/// let stream = TcpStream::connect("127.0.0.1:443");
771771
/// // or
772772
/// let stream = TcpStream::connect((Ipv4Addr::new(127, 0, 0, 1), 443));
773773
/// ```

0 commit comments

Comments
 (0)