diff options
| author | Jorge Aparicio <jorge.aparicio@ferrous-systems.com> | 2021-07-21 10:14:00 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge.aparicio@ferrous-systems.com> | 2021-07-21 10:14:00 +0200 |
| commit | 18880406cb425bcd030f0b0aa9e67e8ac05bd852 (patch) | |
| tree | b191c17c8bdc5dbfae426c61694e590436c4eb4e /book/en | |
| parent | 5f7dc0b903a3d26a5bd49864dce42f3d91d3d2a8 (diff) | |
use tuple struct syntax for Monotonics everywhere
Diffstat (limited to 'book/en')
| -rw-r--r-- | book/en/src/migration/migration_v5.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/book/en/src/migration/migration_v5.md b/book/en/src/migration/migration_v5.md index 154714e..210063b 100644 --- a/book/en/src/migration/migration_v5.md +++ b/book/en/src/migration/migration_v5.md @@ -226,7 +226,7 @@ v0.6.0 code: fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { let buffer: &'static mut [u8; 1024] = cx.local.buffer; - (Shared {}, Local {}, init::Monotonics {}) + (Shared {}, Local {}, init::Monotonics()) } ``` @@ -263,7 +263,7 @@ mod app { fn init(_: init::Context) -> (MySharedResources, MyLocalResources, init::Monotonics) { rtic::pend(Interrupt::UART0); - (MySharedResources, MyLocalResources, init::Monotonics {}) + (MySharedResources, MyLocalResources, init::Monotonics()) } // [more code] |
