From 1925e9e631a1430a1df08b81a4955a735ac09839 Mon Sep 17 00:00:00 2001 From: Matt Schulte Date: Mon, 31 Oct 2022 08:39:08 -0700 Subject: [PATCH] Fix function name in UdpSocket recv documentation In the "cancellation safety" section of the UdpSocket recv function, "recv_from" is referenced when it should be "recv" --- tokio/src/net/udp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/net/udp.rs b/tokio/src/net/udp.rs index 89414259c5e..ec3d1164a5b 100644 --- a/tokio/src/net/udp.rs +++ b/tokio/src/net/udp.rs @@ -740,7 +740,7 @@ impl UdpSocket { /// /// # Cancel safety /// - /// This method is cancel safe. If `recv_from` is used as the event in a + /// This method is cancel safe. If `recv` is used as the event in a /// [`tokio::select!`](crate::select) statement and some other branch /// completes first, it is guaranteed that no messages were received on this /// socket.