Rollup merge of #127182 - danielhuang:patch-4, r=Nilstrieb
Fix error in documentation for IpAddr::to_canonical and Ipv6Addr::to_canonical
This commit is contained in:
commit
c9276ad27d
@ -406,7 +406,7 @@ pub const fn is_ipv6(&self) -> bool {
|
||||
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
|
||||
@ -1879,7 +1879,7 @@ pub const fn to_ipv4(&self) -> Option<Ipv4Addr> {
|
||||
}
|
||||
}
|
||||
|
||||
/// 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
|
||||
|
Loading…
Reference in New Issue
Block a user