8000 Unrolled build for #147007 · rust-lang/rust@5856f6f · GitHub
[go: up one dir, main page]

Skip to content

Commit 5856f6f

Browse files
authored
8000
Unrolled build for #147007
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.
2 parents 7cfd7d3 + 852da23 commit 5856f6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/std/src/net/socket_addr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ use crate::{io, iter, option, slice, vec};
2828
/// [`SocketAddr`] a 5ECF s expected by its [`FromStr`] implementation or a string like
2929
/// `<host_name>:<port>` pair where `<port>` is a [`u16`] value.
3030
///
31+
/// * <code>&[[SocketAddr]]</code>: all [`SocketAddr`] values in the slice will be used.
32+
///
3133
/// This trait allows constructing network objects like [`TcpStream`] or
3234
/// [`UdpSocket`] easily with values of various types for the bind/connection
3335
/// address. It is needed because sometimes one type is more appropriate than

0 commit comments

Comments
 (0)
0