Update ip_addr.rs
This commit is contained in:
parent
ef3d6fd700
commit
af3d7f869b
1 changed files with 2 additions and 2 deletions
|
@ -406,7 +406,7 @@ impl IpAddr {
|
||||||
matches!(self, IpAddr::V6(_))
|
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.
|
/// returns `self` as-is.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
|
@ -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`.
|
/// returns self wrapped in an `IpAddr::V6`.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue