From 04d91457f81fcb35e9688b7df6bdf0df9f6781d9 Mon Sep 17 00:00:00 2001 From: Asger Hautop Drewsen Date: Fri, 27 Sep 2024 10:05:52 +0200 Subject: [PATCH] Reference UNSPECIFIED instead of INADDR_ANY in join_multicast_v4 --- std/src/net/udp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/src/net/udp.rs b/std/src/net/udp.rs index d4252cb87ac22..8c9e31f9c157c 100644 --- a/std/src/net/udp.rs +++ b/std/src/net/udp.rs @@ -579,8 +579,8 @@ impl UdpSocket { /// This function specifies a new multicast group for this socket to join. /// The address must be a valid multicast address, and `interface` is the /// address of the local interface with which the system should join the - /// multicast group. If it's equal to `INADDR_ANY` then an appropriate - /// interface is chosen by the system. + /// multicast group. If it's equal to [`UNSPECIFIED`](Ipv4Addr::UNSPECIFIED) + /// then an appropriate interface is chosen by the system. #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn join_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> { self.0.join_multicast_v4(multiaddr, interface)