Skip to content

Commit 6d22976

Browse files
committed
chore: fix some minor issues in the comments
Signed-off-by: goldlinker <[email protected]>
1 parent 0562eee commit 6d22976

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

embedded-hal-bus/src/spi/atomic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::util::AtomicCell;
1212
/// each with its own `CS` pin.
1313
///
1414
/// Sharing is implemented with a [`AtomicDevice`], which consists of an `UnsafeCell` and an `AtomicBool` "locked" flag.
15-
/// This means it has low overhead, like [`RefCellDevice`](crate::spi::RefCellDevice). Aditionally, it is `Send`,
15+
/// This means it has low overhead, like [`RefCellDevice`](crate::spi::RefCellDevice). Additionally, it is `Send`,
1616
/// which allows sharing a single bus across multiple threads (interrupt priority level), like [`CriticalSectionDevice`](crate::spi::CriticalSectionDevice),
1717
/// while not using critical sections and therefore impacting real-time performance less.
1818
///

embedded-io-adapters/src/tokio_1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl<T: tokio::io::AsyncWrite + Unpin + ?Sized> embedded_io_async::Write for Fro
9696
impl<T: tokio::io::AsyncSeek + Unpin + ?Sized> embedded_io_async::Seek for FromTokio<T> {
9797
async fn seek(&mut self, pos: embedded_io::SeekFrom) -> Result<u64, Self::Error> {
9898
// Note: `start_seek` can return an error if there is another seek in progress.
99-
// Therefor it is recommended to call `poll_complete` before any call to `start_seek`.
99+
// Therefore it is recommended to call `poll_complete` before any call to `start_seek`.
100100
poll_fn(|cx| Pin::new(&mut self.inner).poll_complete(cx)).await?;
101101
Pin::new(&mut self.inner).start_seek(pos.into())?;
102102
poll_fn(|cx| Pin::new(&mut self.inner).poll_complete(cx)).await

0 commit comments

Comments
 (0)