]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in doc `ToSocketAddrs` example.
authorCorey Farwell <coreyf@rwell.org>
Thu, 31 Aug 2017 02:03:03 +0000 (22:03 -0400)
committerCorey Farwell <coreyf@rwell.org>
Thu, 31 Aug 2017 02:03:03 +0000 (22:03 -0400)
src/libstd/net/addr.rs

index 9ef19cd64b386f89a6ff7be7e60e8b795d16c80e..e1d7a2531b6c92b15884d0d3a0a544975498aed7 100644 (file)
@@ -767,7 +767,7 @@ fn hash<H: hash::Hasher>(&self, s: &mut H) {
 ///
 /// 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));
 /// ```