diff --git a/book/en/src/migration.md b/book/en/src/migration.md index bbafe0d068..a71773eefe 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); // ^^^ }