aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam W <[email protected]>2025-07-03 14:52:33 +0100
committerGitHub <[email protected]>2025-07-03 14:52:33 +0100
commitdb9af5b6cc2d5f47a912836bebf25b48903006f9 (patch)
tree1b41328a62538654f40626ac01c9f1c40bc986c3
parentec812d3e66e699db671f262239dc7c277c6cef2d (diff)
net: correct `UdpSocket::recv_from_with` docs
-rw-r--r--embassy-net/src/udp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-net/src/udp.rs b/embassy-net/src/udp.rs
index 63c2f4c75..482eb0e56 100644
--- a/embassy-net/src/udp.rs
+++ b/embassy-net/src/udp.rs
@@ -172,7 +172,7 @@ impl<'a> UdpSocket<'a> {
172 /// register the current task to be notified when a datagram is received. 172 /// register the current task to be notified when a datagram is received.
173 /// 173 ///
174 /// When a datagram is received, this method will call the provided function 174 /// When a datagram is received, this method will call the provided function
175 /// with the number of bytes received and the remote endpoint and return 175 /// with a reference to the received bytes and the remote endpoint and return
176 /// `Poll::Ready` with the function's returned value. 176 /// `Poll::Ready` with the function's returned value.
177 pub async fn recv_from_with<F, R>(&mut self, f: F) -> R 177 pub async fn recv_from_with<F, R>(&mut self, f: F) -> R
178 where 178 where