about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-09-23 14:54:11 +0200
committerGitHub <noreply@github.com>2020-09-23 14:54:11 +0200
commit049ba0c6f01fee9978acaf9caefdc3bfcd5ddc9b (patch)
tree384869f5ee96097d43ca93eabe30997aa3216cd5 /library/std
parentb76343643dddfa17de98f5aa7ad3d24ef4b62f7b (diff)
parent4622ceb5e02a717afd2380bc416b0a19897731ee (diff)
downloadrust-049ba0c6f01fee9978acaf9caefdc3bfcd5ddc9b.tar.gz
rust-049ba0c6f01fee9978acaf9caefdc3bfcd5ddc9b.zip
Rollup merge of #77042 - imbolc:patch-2, r=kennytm
Improve documentation for ToSocketAddrs

I little clarification
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/net/addr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/net/addr.rs b/library/std/src/net/addr.rs
index 499b1137dcb..e213963d250 100644
--- a/library/std/src/net/addr.rs
+++ b/library/std/src/net/addr.rs
@@ -745,9 +745,9 @@ 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.
+///    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