We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f951295 + 4622ceb commit cff8489Copy full SHA for cff8489
library/std/src/net/addr.rs
@@ -745,9 +745,9 @@ impl hash::Hash for SocketAddrV6 {
745
/// `(`[`Ipv4Addr`]`, `[`u16`]`)`, `(`[`Ipv6Addr`]`, `[`u16`]`)`:
746
/// [`to_socket_addrs`] constructs a [`SocketAddr`] trivially.
747
///
748
-/// * `(`[`&str`]`, `[`u16`]`)`: the string should be either a string representation
+/// * `(`[`&str`]`, `[`u16`]`)`: [`&str`] should be either a string representation
749
/// of an [`IpAddr`] address as expected by [`FromStr`] implementation or a host
750
-/// name.
+/// name. [`u16`] is the port number.
751
752
/// * [`&str`]: the string should be either a string representation of a
753
/// [`SocketAddr`] as expected by its [`FromStr`] implementation or a string like
0 commit comments