Skip to content

Commit 6f79b71

Browse files
authored
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.
1 parent 8b07292 commit 6f79b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/net/ip.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ impl Ipv6Addr {
11301130
/// The following return [`false`]:
11311131
///
11321132
/// - the loopback address
1133-
/// - link-local, site-local, and unique local unicast addresses
1133+
/// - link-local, and unique local unicast addresses
11341134
/// - interface-, link-, realm-, admin- and site-local multicast addresses
11351135
///
11361136
/// [`true`]: ../../std/primitive.bool.html

0 commit comments

Comments
 (0)