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 09:10:26 -07:00 committed by GitHub
parent df99428c17
commit c2210dfe37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.