diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-12 18:29:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-12 18:29:58 +0000 |
| commit | 65d0ee1f8e307cc26c2628c897fdbd13ff9ba06d (patch) | |
| tree | eb45e23fce2eb00663645fda2fb2edc905c48780 | |
| parent | 445730756e8d90a4efd6fe82f08fc4842e8c01f1 (diff) | |
| parent | 95a020c8af529dc5f27bc78ac234239783709493 (diff) | |
Merge #408
408: Fixup app/new r=perlindgren a=AfoHT
Reference the current example
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
| -rw-r--r-- | book/en/src/by-example/new.md | 7 |
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` |
