about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAbhishek Chanda <abhishek.becs@gmail.com>2016-03-01 23:42:37 -0800
committerAbhishek Chanda <abhishek.becs@gmail.com>2016-03-04 11:01:06 -0800
commita67fd99460c8ab10b4c4020b5d105535c97638ff (patch)
tree02588f2c60cc474c62e012a6210bd3812820b396 /src/libstd
parent27b2201c7caae284414d7d49d596ff1519c46763 (diff)
downloadrust-a67fd99460c8ab10b4c4020b5d105535c97638ff.tar.gz
rust-a67fd99460c8ab10b4c4020b5d105535c97638ff.zip
Formatting changes to make tidy pass
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/net/ip.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs
index 55930e06e0e..9c8ff44c704 100644
--- a/src/libstd/net/ip.rs
+++ b/src/libstd/net/ip.rs
@@ -122,7 +122,7 @@ impl Ipv4Addr {
 
     /// Returns true if the address appears to be globally routable.
     /// See [iana-ipv4-special-registry][ipv4-sr].
-    /// [ipv4-sr]: http://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
+    /// [ipv4-sr]: http://goo.gl/RaZ7lg
     ///
     /// The following return false:
     ///
@@ -131,10 +131,10 @@ impl Ipv4Addr {
     /// - the link-local address (169.254.0.0/16)
     /// - the broadcast address (255.255.255.255/32)
     /// - test addresses used for documentation (192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24)
+    /// - the unspecified address (0.0.0.0)
     pub fn is_global(&self) -> bool {
         !self.is_private() && !self.is_loopback() && !self.is_link_local() &&
-        !self.is_broadcast() && !self.is_documentation() && !self.is_unspecified() &&
-        !self.is_this_network()
+        !self.is_broadcast() && !self.is_documentation() && !self.is_unspecified()
     }
 
     /// Returns true if this is a multicast address.