mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-13 02:17:41 +00:00
Fix docs for TcpListener::bind
`socket_addr` was renamed to `local_addr` in 1.0beta.
See: f798674b86
This commit is contained in:
parent
7fa2c6ca31
commit
add5054bea
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user