diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-09-08 19:09:32 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-08 19:09:32 +0200 |
| commit | 573c433f64a049d4e0d501df1194c3228aae0863 (patch) | |
| tree | 24856045ba7b053cef41084a33ab8f8d54979fa0 | |
| parent | 58866790064be685b3b469e99f5c99cfad319f8b (diff) | |
| parent | 34ed3441ce4924be4b637fb86ee4aa003dcc0e8d (diff) | |
Merge pull request #945 from danbev/embassy-hal-common-typo
Fix typo in peripheral.rs
| -rw-r--r-- | embassy-hal-common/src/peripheral.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-hal-common/src/peripheral.rs b/embassy-hal-common/src/peripheral.rs index 038cebb5e..f507468f8 100644 --- a/embassy-hal-common/src/peripheral.rs +++ b/embassy-hal-common/src/peripheral.rs | |||
| @@ -6,7 +6,7 @@ use core::ops::{Deref, DerefMut}; | |||
| 6 | /// This is functionally the same as a `&'a mut T`. The reason for having a | 6 | /// This is functionally the same as a `&'a mut T`. The reason for having a |
| 7 | /// dedicated struct is memory efficiency: | 7 | /// dedicated struct is memory efficiency: |
| 8 | /// | 8 | /// |
| 9 | /// Peripheral singletons are typically either zero-sized (for concrete peripehrals | 9 | /// Peripheral singletons are typically either zero-sized (for concrete peripherals |
| 10 | /// like `PA9` or `Spi4`) or very small (for example `AnyPin` which is 1 byte). | 10 | /// like `PA9` or `Spi4`) or very small (for example `AnyPin` which is 1 byte). |
| 11 | /// However `&mut T` is always 4 bytes for 32-bit targets, even if T is zero-sized. | 11 | /// However `&mut T` is always 4 bytes for 32-bit targets, even if T is zero-sized. |
| 12 | /// PeripheralRef stores a copy of `T` instead, so it's the same size. | 12 | /// PeripheralRef stores a copy of `T` instead, so it's the same size. |
