Skip to content

Commit a67fd99

Browse files
committed
Formatting changes to make tidy pass
1 parent 27b2201 commit a67fd99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/net/ip.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl Ipv4Addr {
122122

123123
/// Returns true if the address appears to be globally routable.
124124
/// See [iana-ipv4-special-registry][ipv4-sr].
125-
/// [ipv4-sr]: http://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
125+
/// [ipv4-sr]: http://goo.gl/RaZ7lg
126126
///
127127
/// The following return false:
128128
///
@@ -131,10 +131,10 @@ impl Ipv4Addr {
131131
/// - the link-local address (169.254.0.0/16)
132132
/// - the broadcast address (255.255.255.255/32)
133133
/// - test addresses used for documentation (192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24)
134+
/// - the unspecified address (0.0.0.0)
134135
pub fn is_global(&self) -> bool {
135136
!self.is_private() && !self.is_loopback() && !self.is_link_local() &&
136-
!self.is_broadcast() && !self.is_documentation() && !self.is_unspecified() &&
137-
!self.is_this_network()
137+
!self.is_broadcast() && !self.is_documentation() && !self.is_unspecified()
138138
}
139139

140140
/// Returns true if this is a multicast address.

0 commit comments

Comments
 (0)