diff options
| author | Ulf Lilleengen <[email protected]> | 2025-12-14 19:15:14 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-14 19:15:14 +0000 |
| commit | 821e87291ca7306ea4b9f9d8cfeb0ff01de16de8 (patch) | |
| tree | c0206ea09539e281df811b0756f19e17c1b74954 | |
| parent | 3bfbe5e51d010aca78b8019b662f4c903ee2f4a9 (diff) | |
| parent | 8def4192c8674106f7677fc5a94c43b6f87c6a63 (diff) | |
Merge pull request #5067 from MJE10/sync-pipe-docs
embassy-sync: Update `Pipe::try_write` docs
| -rw-r--r-- | embassy-sync/src/pipe.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-sync/src/pipe.rs b/embassy-sync/src/pipe.rs index 215a556d9..d6c21299a 100644 --- a/embassy-sync/src/pipe.rs +++ b/embassy-sync/src/pipe.rs | |||
| @@ -393,7 +393,7 @@ where | |||
| 393 | /// Attempt to immediately write some bytes to the pipe. | 393 | /// Attempt to immediately write some bytes to the pipe. |
| 394 | /// | 394 | /// |
| 395 | /// This method will either write a nonzero amount of bytes to the pipe immediately, | 395 | /// This method will either write a nonzero amount of bytes to the pipe immediately, |
| 396 | /// or return an error if the pipe is empty. See [`write`](Self::write) for a variant | 396 | /// or return an error if the pipe is full. See [`write`](Self::write) for a variant |
| 397 | /// that waits instead of returning an error. | 397 | /// that waits instead of returning an error. |
| 398 | pub fn try_write(&self, buf: &[u8]) -> Result<usize, TryWriteError> { | 398 | pub fn try_write(&self, buf: &[u8]) -> Result<usize, TryWriteError> { |
| 399 | self.try_write_with_context(None, buf) | 399 | self.try_write_with_context(None, buf) |
