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.