diff options
| author | Stefan Gehr <[email protected]> | 2024-02-03 14:56:31 +0100 |
|---|---|---|
| committer | Stefan Gehr <[email protected]> | 2024-02-03 14:56:31 +0100 |
| commit | b9d0069671b33107e35af6bdaa662e9c7be8e3f9 (patch) | |
| tree | b6c4d3d407a1cf4eb05985d20915ba6a07db8182 /embassy-net | |
| parent | 88e7e1ceb9882a25548ecd8f69c8be5ba26ca6a3 (diff) | |
correct spelling of the word "receive"
Diffstat (limited to 'embassy-net')
| -rw-r--r-- | embassy-net/src/tcp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs index 72b0677b4..c508ff97a 100644 --- a/embassy-net/src/tcp.rs +++ b/embassy-net/src/tcp.rs | |||
| @@ -342,7 +342,7 @@ impl<'a> TcpSocket<'a> { | |||
| 342 | self.io.with(|s, _| s.may_send()) | 342 | self.io.with(|s, _| s.may_send()) |
| 343 | } | 343 | } |
| 344 | 344 | ||
| 345 | /// return whether the recieve half of the full-duplex connection is open. | 345 | /// return whether the receive half of the full-duplex connection is open. |
| 346 | /// This function returns true if it’s possible to receive data from the remote endpoint. | 346 | /// This function returns true if it’s possible to receive data from the remote endpoint. |
| 347 | /// It will return true while there is data in the receive buffer, and if there isn’t, | 347 | /// It will return true while there is data in the receive buffer, and if there isn’t, |
| 348 | /// as long as the remote endpoint has not closed the connection. | 348 | /// as long as the remote endpoint has not closed the connection. |
| @@ -471,7 +471,7 @@ impl<'d> TcpIo<'d> { | |||
| 471 | s.register_recv_waker(cx.waker()); | 471 | s.register_recv_waker(cx.waker()); |
| 472 | Poll::Pending | 472 | Poll::Pending |
| 473 | } else { | 473 | } else { |
| 474 | // if we can't receive because the recieve half of the duplex connection is closed then return an error | 474 | // if we can't receive because the receive half of the duplex connection is closed then return an error |
| 475 | Poll::Ready(Err(Error::ConnectionReset)) | 475 | Poll::Ready(Err(Error::ConnectionReset)) |
| 476 | } | 476 | } |
| 477 | } else { | 477 | } else { |
