Skip to content

Commit

Permalink
elaborate on Timer docs (bevyengine#6385)
Browse files Browse the repository at this point in the history
These tiny changes answer question I had when using the Timer class.
  • Loading branch information
hmeine authored and ItsDoot committed Feb 1, 2023
1 parent 9119400 commit ee49535
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/bevy_time/src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ impl Timer {
}
}

/// Returns `true` if the timer has reached its duration.
/// Returns `true` if the timer has reached its duration at least once.
/// See also [`Timer::just_finished`](Timer::just_finished).
///
/// # Examples
/// ```
Expand Down Expand Up @@ -188,6 +189,7 @@ impl Timer {
/// Advance the timer by `delta` seconds.
/// Non repeating timer will clamp at duration.
/// Repeating timer will wrap around.
/// Will not affect paused timers.
///
/// See also [`Stopwatch::tick`](Stopwatch::tick).
///
Expand Down

0 comments on commit ee49535

Please sign in to comment.