Skip to content

Commit cff8489

Browse files
Rollup merge of rust-lang#77042 - imbolc:patch-2, r=kennytm
Improve documentation for ToSocketAddrs I little clarification
2 parents f951295 + 4622ceb commit cff8489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/std/src/net/addr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -745,9 +745,9 @@ impl hash::Hash for SocketAddrV6 {
745745
/// `(`[`Ipv4Addr`]`, `[`u16`]`)`, `(`[`Ipv6Addr`]`, `[`u16`]`)`:
746746
/// [`to_socket_addrs`] constructs a [`SocketAddr`] trivially.
747747
///
748-
/// * `(`[`&str`]`, `[`u16`]`)`: the string should be either a string representation
748+
/// * `(`[`&str`]`, `[`u16`]`)`: [`&str`] should be either a string representation
749749
/// of an [`IpAddr`] address as expected by [`FromStr`] implementation or a host
750-
/// name.
750+
/// name. [`u16`] is the port number.
751751
///
752752
/// * [`&str`]: the string should be either a string representation of a
753753
/// [`SocketAddr`] as expected by its [`FromStr`] implementation or a string like

0 commit comments

Comments
 (0)