net: fix function name in UdpSocket recv documentation (#5150)

In the "cancellation safety" section of the UdpSocket recv function, "recv_from" is referenced when it should be "recv"
This commit is contained in:
Matt Schulte
2022-10-31 16:10:26 +00:00
committed by GitHub
parent df99428c17
commit c2210dfe37
+1 -1
View File
@@ -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.