From 9a67f00a30f14df3b9635913f728afd0b40c138d Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Sun, 8 Jan 2023 19:16:36 +0100 Subject: [PATCH] Fix typos --- examples/init.rs | 2 +- macros/src/codegen/module.rs | 2 +- xtask/src/command.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/init.rs b/examples/init.rs index c807a3c10b..d37903ea50 100644 --- a/examples/init.rs +++ b/examples/init.rs @@ -29,7 +29,7 @@ mod app { let _x: &'static mut u32 = cx.local.x; // Access to the critical section token, - // to indicate that this is a critical seciton + // to indicate that this is a critical section let _cs_token: bare_metal::CriticalSection = cx.cs; hprintln!("init").unwrap(); diff --git a/macros/src/codegen/module.rs b/macros/src/codegen/module.rs index a64abd8a74..c6f7690fc3 100644 --- a/macros/src/codegen/module.rs +++ b/macros/src/codegen/module.rs @@ -140,7 +140,7 @@ pub fn codegen(ctxt: Context, app: &App, analysis: &Analysis) -> TokenStream2 { let interrupt = &analysis .interrupts .get(&priority) - .expect("RTIC-ICE: interrupt identifer not found") + .expect("RTIC-ICE: interrupt identifier not found") .0; let internal_spawn_ident = util::internal_task_ident(name, "spawn"); diff --git a/xtask/src/command.rs b/xtask/src/command.rs index 889540c529..418f440cb0 100644 --- a/xtask/src/command.rs +++ b/xtask/src/command.rs @@ -136,7 +136,7 @@ pub fn run_command(command: &CargoCommand) -> anyhow::Result { }) } -/// Check if `run` was sucessful. +/// Check if `run` was successful. /// returns Ok in case the run went as expected, /// Err otherwise pub fn run_successful(run: &RunResult, expected_output_file: String) -> Result<(), TestRunError> {