File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1051,10 +1051,19 @@ impl Ipv6Addr {
1051
1051
( self . segments ( ) [ 0 ] & 0xffc0 ) == 0xfe80
1052
1052
}
1053
1053
1054
- /// Returns [`true`] if this is a deprecated unicast site-local address
1055
- /// (fec0::/10).
1054
+ /// Returns [`true`] if this is a deprecated unicast site-local address (fec0::/10). The
1055
+ /// unicast site-local address format is defined in [RFC 4291 section 2.5.7] as:
1056
+ ///
1057
+ /// ```no_rust
1058
+ /// | 10 |
1059
+ /// | bits | 54 bits | 64 bits |
1060
+ /// +----------+-------------------------+----------------------------+
1061
+ /// |1111111011| subnet ID | interface ID |
1062
+ /// +----------+-------------------------+----------------------------+
1063
+ /// ```
1056
1064
///
1057
1065
/// [`true`]: ../../std/primitive.bool.html
1066
+ /// [RFC 4291 section 2.5.7]: https://tools.ietf.org/html/rfc4291#section-2.5.7
1058
1067
///
1059
1068
/// # Examples
1060
1069
///
You can’t perform that action at this time.
0 commit comments