Skip to content

Commit

Permalink
Mark Ipv4Addr is_unspecified as stable and provide reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
therealbstern committed Jul 12, 2016
1 parent 459b1a4 commit cd487db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libstd/net/ip.rs
Expand Up @@ -83,6 +83,10 @@ impl Ipv4Addr {
}

/// Returns true for the special 'unspecified' address (0.0.0.0).
///
/// This property is defined in _UNIX Network Programming, Second Edition_,
/// W. Richard Stevens, p. 891; see also [ip7]
/// [ip7][http://man7.org/linux/man-pages/man7/ip.7.html]
pub fn is_unspecified(&self) -> bool {
self.inner.s_addr == 0
}
Expand Down

0 comments on commit cd487db

Please sign in to comment.