aboutsummaryrefslogtreecommitdiff
path: root/examples/spawn.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2021-07-21 08:40:21 +0000
committerGravatar GitHub <noreply@github.com> 2021-07-21 08:40:21 +0000
commit2f3b5cba805d7e7b736869249f46298e59bc944d (patch)
treeb191c17c8bdc5dbfae426c61694e590436c4eb4e /examples/spawn.rs
parent29aef36f6726e1fa87a5f5dcaa4f2745cbcdebcd (diff)
parent18880406cb425bcd030f0b0aa9e67e8ac05bd852 (diff)
downloadrtic-2f3b5cba805d7e7b736869249f46298e59bc944d.tar.gz
rtic-2f3b5cba805d7e7b736869249f46298e59bc944d.tar.zst
rtic-2f3b5cba805d7e7b736869249f46298e59bc944d.zip
Merge #496
496: update the 0.5.x -> 0.6.0 migration guide r=AfoHT a=japaric to use the new resources syntax I also reordered the sections to cover all the resource API first before covering the spawn API I've also added a section about the old `static mut` variable transform Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
Diffstat (limited to 'examples/spawn.rs')
-rw-r--r--examples/spawn.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/spawn.rs b/examples/spawn.rs
index bcb4fb23..435cdf56 100644
--- a/examples/spawn.rs
+++ b/examples/spawn.rs
@@ -21,7 +21,7 @@ mod app {
fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
foo::spawn(1, 2).unwrap();
- (Shared {}, Local {}, init::Monotonics {})
+ (Shared {}, Local {}, init::Monotonics())
}
#[task()]