From 2a40b6366245ddb38f4562da0b4f665f4d0e45d9 Mon Sep 17 00:00:00 2001 From: Imbolc Date: Tue, 22 Sep 2020 09:15:53 +0300 Subject: [PATCH 1/3] Update addr.rs I little clarification --- library/std/src/net/addr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/net/addr.rs b/library/std/src/net/addr.rs index 499b1137dcba5..a52e23de76ff4 100644 --- a/library/std/src/net/addr.rs +++ b/library/std/src/net/addr.rs @@ -747,7 +747,7 @@ impl hash::Hash for SocketAddrV6 { /// /// * `(`[`&str`]`, `[`u16`]`)`: the string should be either a string representation /// of an [`IpAddr`] address as expected by [`FromStr`] implementation or a host -/// name. +/// name. The second [`u16`] value of the tuple represents a port. /// /// * [`&str`]: the string should be either a string representation of a /// [`SocketAddr`] as expected by its [`FromStr`] implementation or a string like From 5ab714fdfe00db1dbac1adf2f56a850768d478b4 Mon Sep 17 00:00:00 2001 From: Imbolc Date: Tue, 22 Sep 2020 19:09:27 +0300 Subject: [PATCH 2/3] Update library/std/src/net/addr.rs Co-authored-by: Ivan Tham --- library/std/src/net/addr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/net/addr.rs b/library/std/src/net/addr.rs index a52e23de76ff4..16320ac3fe792 100644 --- a/library/std/src/net/addr.rs +++ b/library/std/src/net/addr.rs @@ -747,7 +747,7 @@ impl hash::Hash for SocketAddrV6 { /// /// * `(`[`&str`]`, `[`u16`]`)`: the string should be either a string representation /// of an [`IpAddr`] address as expected by [`FromStr`] implementation or a host -/// name. The second [`u16`] value of the tuple represents a port. +/// name. [`u16`] is the port number. /// /// * [`&str`]: the string should be either a string representation of a /// [`SocketAddr`] as expected by its [`FromStr`] implementation or a string like From 4622ceb5e02a717afd2380bc416b0a19897731ee Mon Sep 17 00:00:00 2001 From: Imbolc Date: Tue, 22 Sep 2020 19:09:35 +0300 Subject: [PATCH 3/3] Update library/std/src/net/addr.rs Co-authored-by: Ivan Tham --- library/std/src/net/addr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/net/addr.rs b/library/std/src/net/addr.rs index 16320ac3fe792..e213963d25046 100644 --- a/library/std/src/net/addr.rs +++ b/library/std/src/net/addr.rs @@ -745,7 +745,7 @@ impl hash::Hash for SocketAddrV6 { /// `(`[`Ipv4Addr`]`, `[`u16`]`)`, `(`[`Ipv6Addr`]`, `[`u16`]`)`: /// [`to_socket_addrs`] constructs a [`SocketAddr`] trivially. /// -/// * `(`[`&str`]`, `[`u16`]`)`: the string should be either a string representation +/// * `(`[`&str`]`, `[`u16`]`)`: [`&str`] should be either a string representation /// of an [`IpAddr`] address as expected by [`FromStr`] implementation or a host /// name. [`u16`] is the port number. ///