mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-27 04:31:18 +00:00
Rollup merge of #147007 - LawnGnome:tosocketaddrs-doc, r=tgross35
Explicitly note `&[SocketAddr]` impl of `ToSocketAddrs` Although the examples below this list do imply that there's an impl of `ToSocketAddrs` for `&[SocketAddr]`, it's not actually noted in the list of default implementations.
This commit is contained in:
commit
3053a18ec9
@ -28,6 +28,8 @@ use crate::{io, iter, option, slice, vec};
|
||||
/// [`SocketAddr`] as expected by its [`FromStr`] implementation or a string like
|
||||
/// `<host_name>:<port>` pair where `<port>` is a [`u16`] value.
|
||||
///
|
||||
/// * <code>&[[SocketAddr]]</code>: all [`SocketAddr`] values in the slice will be used.
|
||||
///
|
||||
/// This trait allows constructing network objects like [`TcpStream`] or
|
||||
/// [`UdpSocket`] easily with values of various types for the bind/connection
|
||||
/// address. It is needed because sometimes one type is more appropriate than
|
||||
|
Loading…
x
Reference in New Issue
Block a user