diff --git a/embedded-hal-bus/src/spi/atomic.rs b/embedded-hal-bus/src/spi/atomic.rs index 53b780e9..b4a4208a 100644 --- a/embedded-hal-bus/src/spi/atomic.rs +++ b/embedded-hal-bus/src/spi/atomic.rs @@ -12,7 +12,7 @@ use crate::util::AtomicCell; /// each with its own `CS` pin. /// /// Sharing is implemented with a [`AtomicDevice`], which consists of an `UnsafeCell` and an `AtomicBool` "locked" flag. -/// This means it has low overhead, like [`RefCellDevice`](crate::spi::RefCellDevice). Aditionally, it is `Send`, +/// This means it has low overhead, like [`RefCellDevice`](crate::spi::RefCellDevice). Additionally, it is `Send`, /// which allows sharing a single bus across multiple threads (interrupt priority level), like [`CriticalSectionDevice`](crate::spi::CriticalSectionDevice), /// while not using critical sections and therefore impacting real-time performance less. /// diff --git a/embedded-io-adapters/src/tokio_1.rs b/embedded-io-adapters/src/tokio_1.rs index 0dd4d265..833b0b55 100644 --- a/embedded-io-adapters/src/tokio_1.rs +++ b/embedded-io-adapters/src/tokio_1.rs @@ -96,7 +96,7 @@ impl embedded_io_async::Write for Fro impl embedded_io_async::Seek for FromTokio { async fn seek(&mut self, pos: embedded_io::SeekFrom) -> Result { // Note: `start_seek` can return an error if there is another seek in progress. - // Therefor it is recommended to call `poll_complete` before any call to `start_seek`. + // Therefore it is recommended to call `poll_complete` before any call to `start_seek`. poll_fn(|cx| Pin::new(&mut self.inner).poll_complete(cx)).await?; Pin::new(&mut self.inner).start_seek(pos.into())?; poll_fn(|cx| Pin::new(&mut self.inner).poll_complete(cx)).await