@@ -89,15 +89,15 @@ impl Ipv4Addr {
89
89
90
90
/// Returns true if this is a loopback address (127.0.0.0/8).
91
91
///
92
- /// This property is defined by RFC 6890
92
+ /// This property is defined by RFC 6890.
93
93
#[ stable( since = "1.7.0" , feature = "ip_17" ) ]
94
94
pub fn is_loopback ( & self ) -> bool {
95
95
self . octets ( ) [ 0 ] == 127
96
96
}
97
97
98
98
/// Returns true if this is a private address.
99
99
///
100
- /// The private address ranges are defined in RFC1918 and include:
100
+ /// The private address ranges are defined in RFC 1918 and include:
101
101
///
102
102
/// - 10.0.0.0/8
103
103
/// - 172.16.0.0/12
@@ -114,7 +114,7 @@ impl Ipv4Addr {
114
114
115
115
/// Returns true if the address is link-local (169.254.0.0/16).
116
116
///
117
- /// This property is defined by RFC 6890
117
+ /// This property is defined by RFC 6890.
118
118
#[ stable( since = "1.7.0" , feature = "ip_17" ) ]
119
119
pub fn is_link_local ( & self ) -> bool {
120
120
self . octets ( ) [ 0 ] == 169 && self . octets ( ) [ 1 ] == 254
@@ -140,7 +140,7 @@ impl Ipv4Addr {
140
140
/// Returns true if this is a multicast address.
141
141
///
142
142
/// Multicast addresses have a most significant octet between 224 and 239,
143
- /// and is defined by RFC 5771
143
+ /// and is defined by RFC 5771.
144
144
#[ stable( since = "1.7.0" , feature = "ip_17" ) ]
145
145
pub fn is_multicast ( & self ) -> bool {
146
146
self . octets ( ) [ 0 ] >= 224 && self . octets ( ) [ 0 ] <= 239
@@ -354,7 +354,7 @@ impl Ipv6Addr {
354
354
355
355
/// Returns true if this is a unique local address (IPv6).
356
356
///
357
- /// Unique local addresses are defined in RFC4193 and have the form fc00::/7.
357
+ /// Unique local addresses are defined in RFC 4193 and have the form fc00::/7.
358
358
pub fn is_unique_local ( & self ) -> bool {
359
359
( self . segments ( ) [ 0 ] & 0xfe00 ) == 0xfc00
360
360
}
0 commit comments