Merge pull request #945 from danbev/embassy-hal-common-typo

Fix typo in peripheral.rs
This commit is contained in:
Dario Nieuwenhuis 2022-09-08 19:09:32 +02:00 committed by GitHub
commit 573c433f64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ use core::ops::{Deref, DerefMut};
/// This is functionally the same as a `&'a mut T`. The reason for having a /// This is functionally the same as a `&'a mut T`. The reason for having a
/// dedicated struct is memory efficiency: /// dedicated struct is memory efficiency:
/// ///
/// Peripheral singletons are typically either zero-sized (for concrete peripehrals /// Peripheral singletons are typically either zero-sized (for concrete peripherals
/// like `PA9` or `Spi4`) or very small (for example `AnyPin` which is 1 byte). /// like `PA9` or `Spi4`) or very small (for example `AnyPin` which is 1 byte).
/// However `&mut T` is always 4 bytes for 32-bit targets, even if T is zero-sized. /// However `&mut T` is always 4 bytes for 32-bit targets, even if T is zero-sized.
/// PeripheralRef stores a copy of `T` instead, so it's the same size. /// PeripheralRef stores a copy of `T` instead, so it's the same size.