diff options
| author | Jonathan 'theJPster' Pallant <github@thejpster.org.uk> | 2025-06-14 21:22:58 +0100 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2025-06-15 10:43:43 +0000 |
| commit | 77a29b4e0c2bac40ec3b71c91772a01771f398be (patch) | |
| tree | 76ab6f3dac2a213f429f0b06752dacdd419a3ae1 /book/en/src/by-example | |
| parent | 2a3e92cf201820f8abfdc1ae9472e31a51ff06d5 (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`.
Diffstat (limited to 'book/en/src/by-example')
| -rw-r--r-- | book/en/src/by-example/delay.md | 2 |
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; ... } |
