Skip to content

Commit dda2f5a

Browse files
authored
Unrolled build for rust-lang#127182
Rollup merge of rust-lang#127182 - danielhuang:patch-4, r=Nilstrieb Fix error in documentation for IpAddr::to_canonical and Ipv6Addr::to_canonical
2 parents 7b21c18 + af3d7f8 commit dda2f5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/net/ip_addr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ impl IpAddr {
406406
matches!(self, IpAddr::V6(_))
407407
}
408408

409-
/// Converts this address to an `IpAddr::V4` if it is an IPv4-mapped IPv6 addresses, otherwise it
409+
/// Converts this address to an `IpAddr::V4` if it is an IPv4-mapped IPv6 address, otherwise it
410410
/// returns `self` as-is.
411411
///
412412
/// # Examples
@@ -1879,7 +1879,7 @@ impl Ipv6Addr {
18791879
}
18801880
}
18811881

1882-
/// Converts this address to an `IpAddr::V4` if it is an IPv4-mapped addresses, otherwise it
1882+
/// Converts this address to an `IpAddr::V4` if it is an IPv4-mapped address, otherwise it
18831883
/// returns self wrapped in an `IpAddr::V6`.
18841884
///
18851885
/// # Examples

0 commit comments

Comments
 (0)