about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
author南浦月 <nanpuyue@gmail.com>2020-09-02 21:08:09 +0800
committer南浦月 <nanpuyue@gmail.com>2020-09-02 21:08:09 +0800
commit3b29913295010e538df9a692f4e59ece9ed362d8 (patch)
tree024737dd7c23659fe5cb48ebd9b6470c8da3e330 /library/std/src
parentb4acb110333392ecdaf890fce080e4b576106aae (diff)
downloadrust-3b29913295010e538df9a692f4e59ece9ed362d8.tar.gz
rust-3b29913295010e538df9a692f4e59ece9ed362d8.zip
add a note for Ipv4Addr::to_ipv6_compatible
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/net/ip.rs3
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