aboutsummaryrefslogtreecommitdiff
path: root/book/en
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-11-12 18:29:58 +0000
committerGitHub <noreply@github.com>2020-11-12 18:29:58 +0000
commit65d0ee1f8e307cc26c2628c897fdbd13ff9ba06d (patch)
treeeb45e23fce2eb00663645fda2fb2edc905c48780 /book/en
parent445730756e8d90a4efd6fe82f08fc4842e8c01f1 (diff)
parent95a020c8af529dc5f27bc78ac234239783709493 (diff)
Merge #408
408: Fixup app/new r=perlindgren a=AfoHT Reference the current example Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to 'book/en')
-rw-r--r--book/en/src/by-example/new.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/book/en/src/by-example/new.md b/book/en/src/by-example/new.md
index 82681bf..59a8531 100644
--- a/book/en/src/by-example/new.md
+++ b/book/en/src/by-example/new.md
@@ -46,10 +46,11 @@ $ cargo add cortex-m-rtic --allow-prerelease
Here I'll use the `init` example from the `cortex-m-rtic` crate.
+The examples are found in the `examples` folder, and the contents
+of `init.rs` is shown here:
+
``` console
-$ curl \
- -L https://github.com/rtic-rs/cortex-m-rtic/raw/v0.5.3/examples/init.rs \
- > src/main.rs
+{{#include ../../../../examples/init.rs}}
```
The `init` example uses the `lm3s6965` device. Remember to adjust the `device`