diff options
| author | chrysn <chrysn@fsfe.org> | 2019-10-10 16:42:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-10 16:42:26 +0200 |
| commit | bbd47e20ee094d34a65abc41b5ab7f78b8df35d3 (patch) | |
| tree | 5fdb41643fd84ae1976ae69dca20afc7f364a6c6 /book/en | |
| parent | 38306389ea4d8fadac8565e681887740912e14bd (diff) | |
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.
Diffstat (limited to 'book/en')
| -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 046098e..94aee2c 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; |
