Skip to content

Commit

Permalink
Clarify that Stopwatch.reset does not affect paused state (bevyengine…
Browse files Browse the repository at this point in the history
…#6016)

# Objective

Makes `Stopwatch::reset` documentation more clear

## Solution

Added a doc comment
  • Loading branch information
JohnTheCoolingFan authored and james7132 committed Oct 28, 2022
1 parent 1918c46 commit a5c67ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_time/src/stopwatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl Stopwatch {
self.paused
}

/// Resets the stopwatch.
/// Resets the stopwatch. The reset doesn’t affect the paused state of the stopwatch.
///
/// # Examples
/// ```
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_time/src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ impl Timer {
self.stopwatch.paused()
}

/// Resets the timer. the reset doesn't affect the `paused` state of the timer.
/// Resets the timer. The reset doesn't affect the `paused` state of the timer.
///
/// See also [`Stopwatch::reset`](Stopwatch::reset).
///
Expand Down

0 comments on commit a5c67ff

Please sign in to comment.