doc: make RFC references consistent
This commit is contained in:
@@ -89,7 +89,7 @@ impl Ipv4Addr {
|
|||||||
|
|
||||||
/// Returns true if this is a loopback address (127.0.0.0/8).
|
/// Returns true if this is a loopback address (127.0.0.0/8).
|
||||||
///
|
///
|
||||||
/// This property is defined by RFC 6890
|
/// This property is defined by RFC 6890.
|
||||||
#[stable(since = "1.7.0", feature = "ip_17")]
|
#[stable(since = "1.7.0", feature = "ip_17")]
|
||||||
pub fn is_loopback(&self) -> bool {
|
pub fn is_loopback(&self) -> bool {
|
||||||
self.octets()[0] == 127
|
self.octets()[0] == 127
|
||||||
@@ -114,7 +114,7 @@ impl Ipv4Addr {
|
|||||||
|
|
||||||
/// Returns true if the address is link-local (169.254.0.0/16).
|
/// Returns true if the address is link-local (169.254.0.0/16).
|
||||||
///
|
///
|
||||||
/// This property is defined by RFC 6890
|
/// This property is defined by RFC 6890.
|
||||||
#[stable(since = "1.7.0", feature = "ip_17")]
|
#[stable(since = "1.7.0", feature = "ip_17")]
|
||||||
pub fn is_link_local(&self) -> bool {
|
pub fn is_link_local(&self) -> bool {
|
||||||
self.octets()[0] == 169 && self.octets()[1] == 254
|
self.octets()[0] == 169 && self.octets()[1] == 254
|
||||||
@@ -140,7 +140,7 @@ impl Ipv4Addr {
|
|||||||
/// Returns true if this is a multicast address.
|
/// Returns true if this is a multicast address.
|
||||||
///
|
///
|
||||||
/// Multicast addresses have a most significant octet between 224 and 239,
|
/// Multicast addresses have a most significant octet between 224 and 239,
|
||||||
/// and is defined by RFC 5771
|
/// and is defined by RFC 5771.
|
||||||
#[stable(since = "1.7.0", feature = "ip_17")]
|
#[stable(since = "1.7.0", feature = "ip_17")]
|
||||||
pub fn is_multicast(&self) -> bool {
|
pub fn is_multicast(&self) -> bool {
|
||||||
self.octets()[0] >= 224 && self.octets()[0] <= 239
|
self.octets()[0] >= 224 && self.octets()[0] <= 239
|
||||||
|
|||||||
Reference in New Issue
Block a user