aboutsummaryrefslogtreecommitdiff
path: root/book/en/src/by-example/tips.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-10-02 11:17:56 +0000
committerGitHub <noreply@github.com>2020-10-02 11:17:56 +0000
commit97eae45fa571ba1c470e9ab649ba7570beb963b0 (patch)
tree10730f3d24e43fa70294d15ba1382003e6fd7898 /book/en/src/by-example/tips.md
parent4981af8a4bfe5ee5442521794d851b0dc0313488 (diff)
parentbaa2edfe72ec2e33a84dfebc6c4baf2c2b8d55c2 (diff)
Merge #375
375: close console text blocks on a new line r=AfoHT a=dcarosone fixes #369 Co-authored-by: Daniel Carosone <Daniel.Carosone@gmail.com>
Diffstat (limited to 'book/en/src/by-example/tips.md')
-rw-r--r--book/en/src/by-example/tips.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/book/en/src/by-example/tips.md b/book/en/src/by-example/tips.md
index b191b9d..5a44708 100644
--- a/book/en/src/by-example/tips.md
+++ b/book/en/src/by-example/tips.md
@@ -24,7 +24,8 @@ Here's one such example:
``` console
$ cargo run --example generics
-{{#include ../../../../ci/expected/generics.run}}```
+{{#include ../../../../ci/expected/generics.run}}
+```
Using generics also lets you change the static priorities of tasks during
development without having to rewrite a bunch code every time.
@@ -47,7 +48,8 @@ the program has been compiled using the `dev` profile.
$ cargo run --example cfg --release
$ cargo run --example cfg
-{{#include ../../../../ci/expected/cfg.run}}```
+{{#include ../../../../ci/expected/cfg.run}}
+```
## Running tasks from RAM
@@ -78,7 +80,8 @@ Running this program produces the expected output.
``` console
$ cargo run --example ramfunc
-{{#include ../../../../ci/expected/ramfunc.run}}```
+{{#include ../../../../ci/expected/ramfunc.run}}
+```
One can look at the output of `cargo-nm` to confirm that `bar` ended in RAM
(`0x2000_0000`), whereas `foo` ended in Flash (`0x0000_0000`).
@@ -115,7 +118,8 @@ Here's an example where `heapless::Pool` is used to "box" buffers of 128 bytes.
```
``` console
$ cargo run --example pool
-{{#include ../../../../ci/expected/pool.run}}```
+{{#include ../../../../ci/expected/pool.run}}
+```
## Inspecting the expanded code