259: Fixed peripherals -> device typo r=japaric a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
This commit is contained in:
bors[bot] 2019-10-23 18:34:01 +00:00 committed by GitHub
commit f9b30a1ff8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ Change this:
const APP: () = { const APP: () = {
#[init] #[init]
fn init() { fn init() {
peripherals.SOME_PERIPHERAL.write(something); device.SOME_PERIPHERAL.write(something);
} }
// .. // ..
@ -128,7 +128,7 @@ const APP: () = {
#[init] #[init]
fn init(cx: init::Context) { fn init(cx: init::Context) {
// ^^^^^^^^^^^^^^^^^ // ^^^^^^^^^^^^^^^^^
cx.peripherals.SOME_PERIPHERAL.write(something); cx.device.SOME_PERIPHERAL.write(something);
// ^^^ // ^^^
} }