Skip to content

Commit

Permalink
Fix docs for TcpListener::bind
Browse files Browse the repository at this point in the history
`socket_addr` was renamed to `local_addr` in 1.0beta.

See: f798674
  • Loading branch information
Ryman committed Nov 25, 2015
1 parent 7fa2c6c commit add5054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/net/tcp.rs
Expand Up @@ -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.
Expand Down

0 comments on commit add5054

Please sign in to comment.