Fix the locals.rs comment

I believe that is a typo s/shared/local_to_bar
This commit is contained in:
Jakub Młynarczyk 2022-01-08 16:36:59 +11:00 committed by GitHub
parent 2c921ac67c
commit 20f1c396d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ mod app {
hprintln!("foo: local_to_foo = {}", local_to_foo).unwrap(); hprintln!("foo: local_to_foo = {}", local_to_foo).unwrap();
} }
// `shared` can only be accessed from this context // `local_to_bar` can only be accessed from this context
#[task(local = [local_to_bar])] #[task(local = [local_to_bar])]
fn bar(cx: bar::Context) { fn bar(cx: bar::Context) {
let local_to_bar = cx.local.local_to_bar; let local_to_bar = cx.local.local_to_bar;