about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authormjptree <michael.prantl@hotmail.de>2019-11-03 16:16:14 +0000
committerGitHub <noreply@github.com>2019-11-03 16:16:14 +0000
commit6f79b71a6979de016c8db3f76fbd6d5cbba39cdc (patch)
tree644de5f8151d732ce44b386012aea36f47522f15 /src/libstd
parent8b072926712c5856016c0d1ad0411a4767b4a9bf (diff)
downloadrust-6f79b71a6979de016c8db3f76fbd6d5cbba39cdc.tar.gz
rust-6f79b71a6979de016c8db3f76fbd6d5cbba39cdc.zip
Correct deprecated `is_global` IPv6 documentation
This method does currently not return false for the `site_local` unicast address space. The documentation of the `is_unicast_global` method on lines 1352 - 1382 suggests that this is intentional as the site-local prefix must no longer be supported in new implementations, thus the documentation can safely be updated to reflect that information.
If not so,  either the `is_unicast_global` method should be updated to exclude the unicast site-local address space, or the `is_global` method itself.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/net/ip.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs
index 70b68d13485..719df4449a4 100644
--- a/src/libstd/net/ip.rs
+++ b/src/libstd/net/ip.rs
@@ -1130,7 +1130,7 @@ impl Ipv6Addr {
     /// The following return [`false`]:
     ///
     /// - the loopback address
-    /// - link-local, site-local, and unique local unicast addresses
+    /// - link-local, and unique local unicast addresses
     /// - interface-, link-, realm-, admin- and site-local multicast addresses
     ///
     /// [`true`]: ../../std/primitive.bool.html