Skip to content

Commit 187b415

Browse files
committed
Use is_unicast instead of `!is_multicast
1 parent 7f27b29 commit 187b415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/net/ip.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ impl Ipv6Addr {
14451445
#[unstable(feature = "ip", issue = "27709")]
14461446
#[inline]
14471447
pub const fn is_unicast_global(&self) -> bool {
1448-
!self.is_multicast()
1448+
self.is_unicast()
14491449
&& !self.is_loopback()
14501450
&& !self.is_unicast_link_local()
14511451
&& !self.is_unique_local()

0 commit comments

Comments
 (0)