Skip to content

Commit f135e33

Browse files
authored
Rollup merge of rust-lang#66058 - mjptree:patch-2, r=kennytm
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.
2 parents 41d335e + 15863a6 commit f135e33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/net/ip.rs

Lines changed: 1 addition & 1 deletion
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)