From: Imbolc Date: Tue, 22 Sep 2020 16:09:35 +0000 (+0300) Subject: Update library/std/src/net/addr.rs X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=4622ceb5e02a717afd2380bc416b0a19897731ee;p=rust.git Update library/std/src/net/addr.rs Co-authored-by: Ivan Tham --- diff --git a/library/std/src/net/addr.rs b/library/std/src/net/addr.rs index 16320ac3fe7..e213963d250 100644 --- a/library/std/src/net/addr.rs +++ b/library/std/src/net/addr.rs @@ -745,7 +745,7 @@ fn hash(&self, s: &mut H) { /// `(`[`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. ///