diff options
| author | Ulf Lilleengen <[email protected]> | 2025-12-06 11:08:55 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-06 11:08:55 +0000 |
| commit | 5bc4727cd3a7698e6bc14829c6919476f1744ea4 (patch) | |
| tree | 323a45a03faccf4c39cb9aafb1883a98dd5e4f3e | |
| parent | a382238225ea55ee478bbde9ddb7d0d37cf004b5 (diff) | |
| parent | 3c3d3ccab05fdb80d3b01e2d08f02fe9741483bc (diff) | |
Merge pull request #4993 from ipuustin/fix-ticker-doc
Fix API documentation for Ticker reset_at() function
| -rw-r--r-- | embassy-time/src/timer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-time/src/timer.rs b/embassy-time/src/timer.rs index 2f5967c63..e6d1aed84 100644 --- a/embassy-time/src/timer.rs +++ b/embassy-time/src/timer.rs | |||
| @@ -253,7 +253,7 @@ impl Ticker { | |||
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | /// Reset the ticker at the deadline. | 255 | /// Reset the ticker at the deadline. |
| 256 | /// If the deadline is in the past, the ticker will fire instantly. | 256 | /// If the deadline is in the past, the ticker will fire before the next scheduled tick. |
| 257 | pub fn reset_at(&mut self, deadline: Instant) { | 257 | pub fn reset_at(&mut self, deadline: Instant) { |
| 258 | self.expires_at = deadline + self.duration; | 258 | self.expires_at = deadline + self.duration; |
| 259 | } | 259 | } |
