Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 04d9145

Browse files
committedSep 27, 2024
Reference UNSPECIFIED instead of INADDR_ANY in join_multicast_v4
1 parent ea82a96 commit 04d9145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎std/src/net/udp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,8 @@ impl UdpSocket {
579579
/// This function specifies a new multicast group for this socket to join.
580580
/// The address must be a valid multicast address, and `interface` is the
581581
/// address of the local interface with which the system should join the
582-
/// multicast group. If it's equal to `INADDR_ANY` then an appropriate
583-
/// interface is chosen by the system.
582+
/// multicast group. If it's equal to [`UNSPECIFIED`](Ipv4Addr::UNSPECIFIED)
583+
/// then an appropriate interface is chosen by the system.
584584
#[stable(feature = "net2_mutators", since = "1.9.0")]
585585
pub fn join_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
586586
self.0.join_multicast_v4(multiaddr, interface)

0 commit comments

Comments
 (0)
Failed to load comments.