Better example using .finished()

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

View File

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