]> git.lizzy.rs Git - rust.git/commitdiff
Update library/std/src/net/addr.rs
authorImbolc <imbolc@imbolc.name>
Tue, 22 Sep 2020 16:09:35 +0000 (19:09 +0300)
committerGitHub <noreply@github.com>
Tue, 22 Sep 2020 16:09:35 +0000 (19:09 +0300)
Co-authored-by: Ivan Tham <pickfire@riseup.net>
library/std/src/net/addr.rs

index 16320ac3fe792465c59e25873b1d628a46e98cd1..e213963d25046b836e446200333cdbeef05345fd 100644 (file)
@@ -745,7 +745,7 @@ fn hash<H: hash::Hasher>(&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.
 ///