Skip to content

Commit

Permalink
Rollup merge of rust-lang#77042 - imbolc:patch-2, r=kennytm
Browse files Browse the repository at this point in the history
Improve documentation for ToSocketAddrs

I little clarification
  • Loading branch information
ecstatic-morse authored Sep 22, 2020
2 parents f951295 + 4622ceb commit cff8489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/net/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cff8489

Please sign in to comment.