Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6c3359c

Browse files
authoredJul 1, 2024
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 2a65e9f + 40a9be9 commit 6c3359c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎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)
Failed to load comments.