Close doc comment

Co-authored-by: Jan Hohenheim <jan@hohenheim.ch>
This commit is contained in:
Lenchog 2025-07-16 08:22:09 +10:00 committed by GitHub
parent 6f1afa7f62
commit 22a4d5ff42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,7 +228,7 @@ impl Timer {
/// let mut timer = Timer::from_seconds(1.5, TimerMode::Once); /// let mut timer = Timer::from_seconds(1.5, TimerMode::Once);
/// timer.finish(); /// timer.finish();
/// assert_eq!(timer.remaining(), Duration::from_secs(0)); /// assert_eq!(timer.remaining(), Duration::from_secs(0));
/// ```
#[inline] #[inline]
pub fn finish(&mut self) { pub fn finish(&mut self) {
let remaining = self.remaining(); let remaining = self.remaining();