Skip to content

Commit

Permalink
Use is_unicast instead of `!is_multicast
Browse files Browse the repository at this point in the history
  • Loading branch information
CDirkx committed May 31, 2021
1 parent 7f27b29 commit 187b415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/net/ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ impl Ipv6Addr {
#[unstable(feature = "ip", issue = "27709")]
#[inline]
pub const fn is_unicast_global(&self) -> bool {
!self.is_multicast()
self.is_unicast()
&& !self.is_loopback()
&& !self.is_unicast_link_local()
&& !self.is_unique_local()
Expand Down

0 comments on commit 187b415

Please sign in to comment.