]> git.lizzy.rs Git - rust.git/commitdiff
Fix docs for TcpListener::bind
authorKevin Butler <haqkrs@gmail.com>
Tue, 24 Nov 2015 23:13:07 +0000 (23:13 +0000)
committerKevin Butler <haqkrs@gmail.com>
Wed, 25 Nov 2015 13:16:37 +0000 (13:16 +0000)
`socket_addr` was renamed to `local_addr` in 1.0beta.

See: f798674b86382929ca17c88de422a6e2fdb27f2a

src/libstd/net/tcp.rs

index fd2e61473f9c0547b9ebf4f24831f95498a9c3fc..f54d4f804806de63309373fcea235e4e9a59e11d 100644 (file)
@@ -234,7 +234,7 @@ impl TcpListener {
     ///
     /// Binding with a port number of 0 will request that the OS assigns a port
     /// to this listener. The port allocated can be queried via the
-    /// `socket_addr` function.
+    /// `local_addr` method.
     ///
     /// The address type can be any implementor of `ToSocketAddrs` trait. See
     /// its documentation for concrete examples.