From 1ba2b5abbef841dc7ef4555517ed06b216bc9d8c Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Wed, 23 Oct 2019 20:31:33 +0200 Subject: [PATCH] Fixed peripherals -> device typo --- book/en/src/migration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); // ^^^ }