Skip to content

Commit

Permalink
Rollup merge of rust-lang#127182 - danielhuang:patch-4, r=Nilstrieb
Browse files Browse the repository at this point in the history
Fix error in documentation for IpAddr::to_canonical and Ipv6Addr::to_canonical
  • Loading branch information
matthiaskrgr authored Jul 1, 2024
2 parents 82a769b + af3d7f8 commit 5d429f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/net/ip_addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ impl IpAddr {
matches!(self, IpAddr::V6(_))
}

/// Converts this address to an `IpAddr::V4` if it is an IPv4-mapped IPv6 addresses, otherwise it
/// Converts this address to an `IpAddr::V4` if it is an IPv4-mapped IPv6 address, otherwise it
/// returns `self` as-is.
///
/// # Examples
Expand Down Expand Up @@ -1879,7 +1879,7 @@ impl Ipv6Addr {
}
}

/// Converts this address to an `IpAddr::V4` if it is an IPv4-mapped addresses, otherwise it
/// Converts this address to an `IpAddr::V4` if it is an IPv4-mapped address, otherwise it
/// returns self wrapped in an `IpAddr::V6`.
///
/// # Examples
Expand Down

0 comments on commit 5d429f4

Please sign in to comment.