Better example using .finished()
Co-authored-by: Jan Hohenheim <jan@hohenheim.ch>
This commit is contained in:
parent
22a4d5ff42
commit
885e15c126
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user