elaborate on Timer docs (#6385)

These tiny changes answer question I had when using the Timer class.
This commit is contained in:
Hans Meine 2022-10-27 15:48:29 +00:00
parent 456971381c
commit 4bcf49b2ea

View file

@ -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
/// ```
@ -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).
///