aboutsummaryrefslogtreecommitdiff
path: root/book/en/src/by-example/resources.md
diff options
context:
space:
mode:
authorDaniel Carosone <Daniel.Carosone@gmail.com>2020-10-02 19:38:00 +1000
committerDaniel Carosone <Daniel.Carosone@gmail.com>2020-10-02 19:38:00 +1000
commitbaa2edfe72ec2e33a84dfebc6c4baf2c2b8d55c2 (patch)
treecde74cac3fecfe70b1df580fd5b02e617af09a93 /book/en/src/by-example/resources.md
parent4d61437bb4debea5adc578ee072bff3619d8077b (diff)
close console text blocks on a new line
fixes #369
Diffstat (limited to 'book/en/src/by-example/resources.md')
-rw-r--r--book/en/src/by-example/resources.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/book/en/src/by-example/resources.md b/book/en/src/by-example/resources.md
index b9e92d1..d67a72f 100644
--- a/book/en/src/by-example/resources.md
+++ b/book/en/src/by-example/resources.md
@@ -29,7 +29,8 @@ access to a resource named `shared`.
``` console
$ cargo run --example resource
-{{#include ../../../../ci/expected/resource.run}}```
+{{#include ../../../../ci/expected/resource.run}}
+```
Note that the `shared` resource cannot be accessed from `idle`. Attempting to do
so results in a compile error.
@@ -71,7 +72,8 @@ lowest priority handler.
``` console
$ cargo run --example lock
-{{#include ../../../../ci/expected/lock.run}}```
+{{#include ../../../../ci/expected/lock.run}}
+```
## Late resources
@@ -97,7 +99,8 @@ the consumer resource.
``` console
$ cargo run --example late
-{{#include ../../../../ci/expected/late.run}}```
+{{#include ../../../../ci/expected/late.run}}
+```
## Only shared access
@@ -127,4 +130,5 @@ any kind of lock.
``` console
$ cargo run --example only-shared-access
-{{#include ../../../../ci/expected/only-shared-access.run}}```
+{{#include ../../../../ci/expected/only-shared-access.run}}
+```