From add5054bea3a91fbf3638905922e184578cbaffc Mon Sep 17 00:00:00 2001 From: Kevin Butler Date: Tue, 24 Nov 2015 23:13:07 +0000 Subject: [PATCH] Fix docs for TcpListener::bind `socket_addr` was renamed to `local_addr` in 1.0beta. See: f798674b86382929ca17c88de422a6e2fdb27f2a --- src/libstd/net/tcp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs index fd2e61473f9c0..f54d4f804806d 100644 --- a/src/libstd/net/tcp.rs +++ b/src/libstd/net/tcp.rs @@ -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.