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>
This commit is contained in:
bors[bot] 2019-10-15 22:43:59 +00:00 committed by GitHub
commit 8a1f009c34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;