Skip to content

Commit cd487db

Browse files
committed
Mark Ipv4Addr is_unspecified as stable and provide reference.
1 parent 459b1a4 commit cd487db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libstd/net/ip.rs

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ impl Ipv4Addr {
8383
}
8484

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

0 commit comments

Comments
 (0)