aboutsummaryrefslogtreecommitdiff
path: root/examples/not-sync.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2019-08-21 10:17:27 +0200
committerJorge Aparicio <jorge@japaric.io>2019-08-21 10:17:27 +0200
commit07b2b4d83078d0fd260d5f0812e8d5a34d02b793 (patch)
treedba2a8e8316e8cd868ccb7b46a80d63c5f61a224 /examples/not-sync.rs
parent0e146f8d1142672725b6abb38478f503a9261c80 (diff)
doc up
Diffstat (limited to 'examples/not-sync.rs')
-rw-r--r--examples/not-sync.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/not-sync.rs b/examples/not-sync.rs
index f0f6075..7ce2a82 100644
--- a/examples/not-sync.rs
+++ b/examples/not-sync.rs
@@ -26,12 +26,12 @@ const APP: () = {
debug::exit(debug::EXIT_SUCCESS);
}
- #[task(resources = [shared])]
+ #[task(resources = [&shared])]
fn foo(c: foo::Context) {
let _: &NotSync = c.resources.shared;
}
- #[task(resources = [shared])]
+ #[task(resources = [&shared])]
fn bar(c: bar::Context) {
let _: &NotSync = c.resources.shared;
}