Skip to content

Commit

Permalink
[book] Remove non-existent anchor reference
Browse files Browse the repository at this point in the history
There is no anchor named `timeout_at` in the example source file. By looking at the context, the reference doesn't look like it's supposed to be there at all.
  • Loading branch information
fwolter authored and korken89 committed Oct 15, 2023
1 parent 4fc6f47 commit 52aa56e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions book/en/src/by-example/delay.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ In cases where you want exact control over time without drift we can use exact p

[fugit]: https://crates.io/crates/fugit

``` rust,noplayground
{{#include ../../../../rtic/examples/async-timeout.rs:timeout_at}}
```

`let mut instant = Systick::now()` sets the starting time of execution.

We want to call `hal_get` after 1000ms relative to this starting time. This can be accomplished by using `Systick::delay_until(instant).await`.
Expand Down

0 comments on commit 52aa56e

Please sign in to comment.