585: Fix the locals.rs comment r=korken89 a=keadwen

I believe that is a typo s/shared/local_to_bar

Co-authored-by: Jakub Młynarczyk <jkbmlynarczyk@gmail.com>
This commit is contained in:
bors[bot] 2022-01-08 06:14:24 +00:00 committed by GitHub
commit 4a16310443
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();
}
// `shared` can only be accessed from this context
// `local_to_bar` can only be accessed from this context
#[task(local = [local_to_bar])]
fn bar(cx: bar::Context) {
let local_to_bar = cx.local.local_to_bar;