diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-23 18:34:01 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-23 18:34:01 +0000 |
| commit | f9b30a1ff87acd5f3c29a32369f0537e8e3d2bf1 (patch) | |
| tree | b251d1581fec06ee7e255c9d48af51c583a261f5 /book | |
| parent | 7d2fa7014dd30ed477180615a4a651535644e51d (diff) | |
| parent | 1ba2b5abbef841dc7ef4555517ed06b216bc9d8c (diff) | |
Merge #259
259: Fixed peripherals -> device typo r=japaric a=korken89
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'book')
| -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 bbafe0d..a71773e 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); // ^^^ } |
