diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2020-10-02 09:33:28 +0000 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2020-10-02 09:33:28 +0000 |
| commit | 9ca10b0d8c735a06a3a0a3623a7fc5d09b5e948c (patch) | |
| tree | b561ce3896bff52207d424982fec1fe859742a85 /book/en/src/by-example/tasks.md | |
| parent | 163edd7579222560caf6598cf8071f4201c277c5 (diff) | |
Add migration to 0.6 along with updated documentation
Diffstat (limited to 'book/en/src/by-example/tasks.md')
| -rw-r--r-- | book/en/src/by-example/tasks.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/book/en/src/by-example/tasks.md b/book/en/src/by-example/tasks.md index d0b5acb..9fefd02 100644 --- a/book/en/src/by-example/tasks.md +++ b/book/en/src/by-example/tasks.md @@ -92,7 +92,7 @@ following snippet: ``` rust #[rtic::app(..)] -const APP: () = { +mod app { #[init(spawn = [foo, bar])] fn init(cx: init::Context) { cx.spawn.foo().unwrap(); @@ -113,5 +113,5 @@ const APP: () = { fn bar(cx: bar::Context, payload: i32) { // .. } -}; +} ``` |
