From 95a020c8af529dc5f27bc78ac234239783709493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Thu, 12 Nov 2020 17:45:12 +0000 Subject: [PATCH] Fixup app/new --- book/en/src/by-example/new.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/book/en/src/by-example/new.md b/book/en/src/by-example/new.md index 82681bf4e5..59a8531356 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`