aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2023-01-08 19:16:36 +0100
committerHenrik Tjäder <henrik@tjaders.com>2023-03-01 00:33:28 +0100
commit9a67f00a30f14df3b9635913f728afd0b40c138d (patch)
treeb27a12609b9b09b8b90dcad70da7ac289427c73f
parentcbe592688047e41ebfd0f15e7bf5799f81bfcd4a (diff)
Fix typos
-rw-r--r--examples/init.rs2
-rw-r--r--macros/src/codegen/module.rs2
-rw-r--r--xtask/src/command.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/init.rs b/examples/init.rs
index c807a3c..d37903e 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 a64abd8..c6f7690 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 889540c..418f440 100644
--- a/xtask/src/command.rs
+++ b/xtask/src/command.rs
@@ -136,7 +136,7 @@ pub fn run_command(command: &CargoCommand) -> anyhow::Result<RunResult> {
})
}
-/// 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> {