diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-02 11:17:56 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-02 11:17:56 +0000 |
| commit | 97eae45fa571ba1c470e9ab649ba7570beb963b0 (patch) | |
| tree | 10730f3d24e43fa70294d15ba1382003e6fd7898 /book/en/src/by-example/resources.md | |
| parent | 4981af8a4bfe5ee5442521794d851b0dc0313488 (diff) | |
| parent | baa2edfe72ec2e33a84dfebc6c4baf2c2b8d55c2 (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/resources.md')
| -rw-r--r-- | book/en/src/by-example/resources.md | 12 |
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}} +``` |
