diff options
Diffstat (limited to 'embassy-hal-common/src/atomic_ring_buffer.rs')
| -rw-r--r-- | embassy-hal-common/src/atomic_ring_buffer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-hal-common/src/atomic_ring_buffer.rs b/embassy-hal-common/src/atomic_ring_buffer.rs index afd3ce1de..0eb39cb33 100644 --- a/embassy-hal-common/src/atomic_ring_buffer.rs +++ b/embassy-hal-common/src/atomic_ring_buffer.rs | |||
| @@ -133,7 +133,7 @@ impl<'a> Writer<'a> { | |||
| 133 | 133 | ||
| 134 | /// Push one data byte. | 134 | /// Push one data byte. |
| 135 | /// | 135 | /// |
| 136 | /// Returns true if pushed succesfully. | 136 | /// Returns true if pushed successfully. |
| 137 | pub fn push_one(&mut self, val: u8) -> bool { | 137 | pub fn push_one(&mut self, val: u8) -> bool { |
| 138 | let n = self.push(|f| match f { | 138 | let n = self.push(|f| match f { |
| 139 | [] => 0, | 139 | [] => 0, |
| @@ -265,7 +265,7 @@ impl<'a> Reader<'a> { | |||
| 265 | 265 | ||
| 266 | /// Pop one data byte. | 266 | /// Pop one data byte. |
| 267 | /// | 267 | /// |
| 268 | /// Returns true if popped succesfully. | 268 | /// Returns true if popped successfully. |
| 269 | pub fn pop_one(&mut self) -> Option<u8> { | 269 | pub fn pop_one(&mut self) -> Option<u8> { |
| 270 | let mut res = None; | 270 | let mut res = None; |
| 271 | self.pop(|f| match f { | 271 | self.pop(|f| match f { |
