about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-28 09:35:09 +0200
committerGitHub <noreply@github.com>2024-09-28 09:35:09 +0200
commit9c4b81c2385bea85e3b3cf17db53dcbb70e62fe4 (patch)
tree50d19fa733ef69795bf558e3ed11e98e92c99326 /library/std/src
parent4e510daed7dcedf2265293bed8844a0c0a30c3ea (diff)
parentfa3215daad3f845acbbf31222b84f13d6d4d56e3 (diff)
downloadrust-9c4b81c2385bea85e3b3cf17db53dcbb70e62fe4.tar.gz
rust-9c4b81c2385bea85e3b3cf17db53dcbb70e62fe4.zip
Rollup merge of #130922 - tyilo:udp-unspecified, r=ibraheemdev
Reference UNSPECIFIED instead of INADDR_ANY in join_multicast_v4
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/net/udp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/net/udp.rs b/library/std/src/net/udp.rs
index d4252cb87ac..8c9e31f9c15 100644
--- a/library/std/src/net/udp.rs
+++ b/library/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)