aboutsummaryrefslogtreecommitdiff
path: root/book/en/src/by-example/tasks.md
diff options
context:
space:
mode:
Diffstat (limited to 'book/en/src/by-example/tasks.md')
-rw-r--r--book/en/src/by-example/tasks.md4
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) {
// ..
}
-};
+}
```