about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBen Stern <bas-github@bstern.org>2016-07-09 13:45:38 -0400
committerBen Stern <bas-github@bstern.org>2016-07-11 23:47:45 -0400
commitcd487db63f7755a603ef6deee9047c3b4251564f (patch)
tree4fed81b8a4fb5605a1e2cd87082f74dff6470e7b /src/libstd
parent459b1a4fbb3a6e564b3ecb56f888498369751894 (diff)
downloadrust-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.rs4
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
     }