diff options
| author | 南浦月 <nanpuyue@gmail.com> | 2020-09-02 21:08:09 +0800 |
|---|---|---|
| committer | 南浦月 <nanpuyue@gmail.com> | 2020-09-02 21:08:09 +0800 |
| commit | 3b29913295010e538df9a692f4e59ece9ed362d8 (patch) | |
| tree | 024737dd7c23659fe5cb48ebd9b6470c8da3e330 /library/std/src/net | |
| parent | b4acb110333392ecdaf890fce080e4b576106aae (diff) | |
| download | rust-3b29913295010e538df9a692f4e59ece9ed362d8.tar.gz rust-3b29913295010e538df9a692f4e59ece9ed362d8.zip | |
add a note for Ipv4Addr::to_ipv6_compatible
Diffstat (limited to 'library/std/src/net')
| -rw-r--r-- | library/std/src/net/ip.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/net/ip.rs b/library/std/src/net/ip.rs index 341a112df71..5aff2b5bb78 100644 --- a/library/std/src/net/ip.rs +++ b/library/std/src/net/ip.rs @@ -745,6 +745,9 @@ impl Ipv4Addr { /// /// a.b.c.d becomes ::a.b.c.d /// + /// This isn't typically the method you want; these addresses don't typically + /// function on modern systems. Use `to_ipv6_mapped` instead. + /// /// [`IPv6` address]: Ipv6Addr /// /// # Examples |
