aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan 'theJPster' Pallant <github@thejpster.org.uk>2025-06-14 21:22:58 +0100
committerEmil Fresk <emil.fresk@gmail.com>2025-06-15 10:43:43 +0000
commit77a29b4e0c2bac40ec3b71c91772a01771f398be (patch)
tree76ab6f3dac2a213f429f0b06752dacdd419a3ae1
parent2a3e92cf201820f8abfdc1ae9472e31a51ff06d5 (diff)
Correct timer type in "Delay and Timeout using Monotonics"
The example in `lm3s6965/examples/async-timeout.rs` uses `Mono` as the monotonic timer type, so it's confusing that the second example switches to using `Systick`.
-rw-r--r--book/en/src/by-example/delay.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/book/en/src/by-example/delay.md b/book/en/src/by-example/delay.md
index b99a4d1..4b5f246 100644
--- a/book/en/src/by-example/delay.md
+++ b/book/en/src/by-example/delay.md
@@ -21,7 +21,7 @@ A _software_ task can `await` the delay to expire:
#[task]
async fn foo(_cx: foo::Context) {
...
- Systick::delay(100.millis()).await;
+ Mono::delay(100.millis()).await;
...
}