From bbd47e20ee094d34a65abc41b5ab7f78b8df35d3 Mon Sep 17 00:00:00 2001 From: chrysn Date: Thu, 10 Oct 2019 16:42:26 +0200 Subject: [PATCH] critical sections: each task gets its own context Fixing what was probably a copy-paste error; different tasks each have different types for their context argument. --- book/en/src/internals/critical-sections.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/en/src/internals/critical-sections.md b/book/en/src/internals/critical-sections.md index 046098ef51..94aee2c750 100644 --- a/book/en/src/internals/critical-sections.md +++ b/book/en/src/internals/critical-sections.md @@ -50,7 +50,7 @@ const APP: () = { } #[interrupt(binds = UART1, priority = 2, resources = [x])] - fn bar(c: foo::Context) { + fn bar(c: bar::Context) { let mut x: &mut u64 = c.resources.x; *x += 1;