Skip to content

Commit 89e25c7

Browse files
committed
don't mention Poll::Ready for async fns as it's implied
1 parent cbbc1f1 commit 89e25c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

embassy-net/src/udp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl<'a> UdpSocket<'a> {
226226
///
227227
/// This method will wait until the datagram has been sent.
228228
///
229-
/// If the socket's send buffer is too small to fit `buf`, this method will return `Poll::Ready(Err(SendError::PacketTooLarge))`
229+
/// If the socket's send buffer is too small to fit `buf`, this method will return `Err(SendError::PacketTooLarge)`
230230
///
231231
/// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)`
232232
pub async fn send_to<T>(&self, buf: &[u8], remote_endpoint: T) -> Result<(), SendError>
@@ -280,7 +280,7 @@ impl<'a> UdpSocket<'a> {
280280
/// This method will wait until the buffer can fit the requested size before
281281
/// calling the function to fill its contents.
282282
///
283-
/// If the socket's send buffer is too small to fit `size`, this method will return `Poll::Ready(Err(SendError::PacketTooLarge))`
283+
/// If the socket's send buffer is too small to fit `size`, this method will return `Err(SendError::PacketTooLarge)`
284284
///
285285
/// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)`
286286
pub async fn send_to_with<T, F, R>(&mut self, size: usize, remote_endpoint: T, f: F) -> Result<R, SendError>

0 commit comments

Comments
 (0)