Skip to content

Commit 77a29b4

Browse files
thejpsterkorken89
authored andcommitted
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`.
1 parent 2a3e92c commit 77a29b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/en/src/by-example/delay.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ A _software_ task can `await` the delay to expire:
2121
#[task]
2222
async fn foo(_cx: foo::Context) {
2323
...
24-
Systick::delay(100.millis()).await;
24+
Mono::delay(100.millis()).await;
2525
...
2626
}
2727

0 commit comments

Comments
 (0)