net: correct UdpSocket::recv_from_with docs

This commit is contained in:
Sam W 2025-07-03 14:52:33 +01:00 committed by GitHub
parent ec812d3e66
commit db9af5b6cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,7 +172,7 @@ impl<'a> UdpSocket<'a> {
/// register the current task to be notified when a datagram is received.
///
/// When a datagram is received, this method will call the provided function
/// with the number of bytes received and the remote endpoint and return
/// with a reference to the received bytes and the remote endpoint and return
/// `Poll::Ready` with the function's returned value.
pub async fn recv_from_with<F, R>(&mut self, f: F) -> R
where