aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--book/en/src/by-example/tips/static_lifetimes.md6
-rw-r--r--ci/expected/lm3s6965/static-recources-in-divergent.run4
-rw-r--r--ci/expected/lm3s6965/static-recources-in-init.run (renamed from ci/expected/lm3s6965/static.run)0
3 files changed, 7 insertions, 3 deletions
diff --git a/book/en/src/by-example/tips/static_lifetimes.md b/book/en/src/by-example/tips/static_lifetimes.md
index 6f88bf0..e11a15b 100644
--- a/book/en/src/by-example/tips/static_lifetimes.md
+++ b/book/en/src/by-example/tips/static_lifetimes.md
@@ -9,15 +9,15 @@ In the following example two different tasks share a [`heapless::spsc::Queue`] f
[`heapless::spsc::Queue`]: https://docs.rs/heapless/0.7.5/heapless/spsc/struct.Queue.html
```rust,noplayground
-{{#include ../../../../../examples/lm3s6965/examples/static.rs}}
+{{#include ../../../../../examples/lm3s6965/examples/static-resources-in-init.rs}}
```
Running this program produces the expected output.
```console
-$ cargo xtask qemu --verbose --example static
+$ cargo xtask qemu --verbose --example static-resources-in-init
```
```console
-{{#include ../../../../../ci/expected/lm3s6965/static.run}}
+{{#include ../../../../../ci/expected/lm3s6965/static-resources-in-init.run}}
```
diff --git a/ci/expected/lm3s6965/static-recources-in-divergent.run b/ci/expected/lm3s6965/static-recources-in-divergent.run
new file mode 100644
index 0000000..444a306
--- /dev/null
+++ b/ci/expected/lm3s6965/static-recources-in-divergent.run
@@ -0,0 +1,4 @@
+received message: 0
+received message: 1
+received message: 2
+received message: 3
diff --git a/ci/expected/lm3s6965/static.run b/ci/expected/lm3s6965/static-recources-in-init.run
index 3d3f46f..3d3f46f 100644
--- a/ci/expected/lm3s6965/static.run
+++ b/ci/expected/lm3s6965/static-recources-in-init.run