diff options
-rw-r--r-- | book/en/src/migration.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/book/en/src/migration.md b/book/en/src/migration.md index bbafe0d0..a71773ee 100644 --- a/book/en/src/migration.md +++ b/book/en/src/migration.md @@ -112,7 +112,7 @@ Change this: const APP: () = { #[init] fn init() { - peripherals.SOME_PERIPHERAL.write(something); + device.SOME_PERIPHERAL.write(something); } // .. @@ -128,7 +128,7 @@ const APP: () = { #[init] fn init(cx: init::Context) { // ^^^^^^^^^^^^^^^^^ - cx.peripherals.SOME_PERIPHERAL.write(something); + cx.device.SOME_PERIPHERAL.write(something); // ^^^ } |