Skip to content

Commit 471f989

Browse files
Rollup merge of rust-lang#44205 - frewsxcv:frewsxcv-addr-doc-fix, r=QuietMisdreavus
Fix typo in doc `ToSocketAddrs` example. None
2 parents b66823f + 396fc11 commit 471f989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)