From 89e25c7b14f77ead6dd8d895d982aa684baf9874 Mon Sep 17 00:00:00 2001 From: Easyoakland <97992568+Easyoakland@users.noreply.github.com> Date: Sun, 26 Jan 2025 16:55:52 -0700 Subject: [PATCH] don't mention Poll::Ready for async fns as it's implied --- embassy-net/src/udp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-net/src/udp.rs b/embassy-net/src/udp.rs index 7db9c5bbc2..63c2f4c758 100644 --- a/embassy-net/src/udp.rs +++ b/embassy-net/src/udp.rs @@ -226,7 +226,7 @@ impl<'a> UdpSocket<'a> { /// /// This method will wait until the datagram has been sent. /// - /// If the socket's send buffer is too small to fit `buf`, this method will return `Poll::Ready(Err(SendError::PacketTooLarge))` + /// If the socket's send buffer is too small to fit `buf`, this method will return `Err(SendError::PacketTooLarge)` /// /// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)` pub async fn send_to(&self, buf: &[u8], remote_endpoint: T) -> Result<(), SendError> @@ -280,7 +280,7 @@ impl<'a> UdpSocket<'a> { /// This method will wait until the buffer can fit the requested size before /// calling the function to fill its contents. /// - /// If the socket's send buffer is too small to fit `size`, this method will return `Poll::Ready(Err(SendError::PacketTooLarge))` + /// If the socket's send buffer is too small to fit `size`, this method will return `Err(SendError::PacketTooLarge)` /// /// When the remote endpoint is not reachable, this method will return `Err(SendError::NoRoute)` pub async fn send_to_with(&mut self, size: usize, remote_endpoint: T, f: F) -> Result