diff options
author | 2019-10-15 22:43:59 +0000 | |
---|---|---|
committer | 2019-10-15 22:43:59 +0000 | |
commit | 8a1f009c34b8cad3f7478aa67432fc60d47be4c0 (patch) | |
tree | e820a43b95ac46acfc3d2b790d2c9f311dda65e5 | |
parent | 6196984d6d75be987d3dec3bf17909e3cd40c15b (diff) | |
parent | bbd47e20ee094d34a65abc41b5ab7f78b8df35d3 (diff) | |
download | rtic-8a1f009c34b8cad3f7478aa67432fc60d47be4c0.tar.gz rtic-8a1f009c34b8cad3f7478aa67432fc60d47be4c0.tar.zst rtic-8a1f009c34b8cad3f7478aa67432fc60d47be4c0.zip |
Merge #252
252: critical sections book: each task gets its own context r=japaric a=chrysn
Fixing what was probably a copy-paste error; different tasks each have different types for their context.
Co-authored-by: chrysn <chrysn@fsfe.org>
Diffstat (limited to '')
-rw-r--r-- | book/en/src/internals/critical-sections.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/book/en/src/internals/critical-sections.md b/book/en/src/internals/critical-sections.md index 046098ef..94aee2c7 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; |