Skip to content

Commit

Permalink
net: fix function name in UdpSocket recv documentation (#5150)
Browse files Browse the repository at this point in the history
In the "cancellation safety" section of the UdpSocket recv function, "recv_from" is referenced when it should be "recv"
  • Loading branch information
Matt Schulte committed Oct 31, 2022
1 parent df99428 commit c2210df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/net/udp.rs
Expand Up @@ -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.
Expand Down

0 comments on commit c2210df

Please sign in to comment.