diff options
| author | Ben Stern <bas-github@bstern.org> | 2016-07-09 13:45:38 -0400 |
|---|---|---|
| committer | Ben Stern <bas-github@bstern.org> | 2016-07-11 23:47:45 -0400 |
| commit | cd487db63f7755a603ef6deee9047c3b4251564f (patch) | |
| tree | 4fed81b8a4fb5605a1e2cd87082f74dff6470e7b /src/libstd | |
| parent | 459b1a4fbb3a6e564b3ecb56f888498369751894 (diff) | |
| download | rust-cd487db63f7755a603ef6deee9047c3b4251564f.tar.gz rust-cd487db63f7755a603ef6deee9047c3b4251564f.zip | |
Mark Ipv4Addr is_unspecified as stable and provide reference.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/net/ip.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs index 57d75441bff..67410e87a8b 100644 --- a/src/libstd/net/ip.rs +++ b/src/libstd/net/ip.rs @@ -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 } |
