Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: make RFC references consistent #33439

Merged
merged 1 commit into from
May 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/libstd/net/ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ impl Ipv4Addr {

/// 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")]
pub fn is_loopback(&self) -> bool {
self.octets()[0] == 127
}

/// Returns true if this is a private address.
///
/// The private address ranges are defined in RFC1918 and include:
/// The private address ranges are defined in RFC 1918 and include:
///
/// - 10.0.0.0/8
/// - 172.16.0.0/12
Expand All @@ -114,7 +114,7 @@ impl Ipv4Addr {

/// 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")]
pub fn is_link_local(&self) -> bool {
self.octets()[0] == 169 && self.octets()[1] == 254
Expand All @@ -140,7 +140,7 @@ impl Ipv4Addr {
/// Returns true if this is a multicast address.
///
/// 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")]
pub fn is_multicast(&self) -> bool {
self.octets()[0] >= 224 && self.octets()[0] <= 239
Expand Down Expand Up @@ -354,7 +354,7 @@ impl Ipv6Addr {

/// Returns true if this is a unique local address (IPv6).
///
/// Unique local addresses are defined in RFC4193 and have the form fc00::/7.
/// Unique local addresses are defined in RFC 4193 and have the form fc00::/7.
pub fn is_unique_local(&self) -> bool {
(self.segments()[0] & 0xfe00) == 0xfc00
}
Expand Down