Skip to content

Commit 1f0fa59

Browse files
Clarify that Stopwatch.reset does not affect paused state (#6016)
# Objective Makes `Stopwatch::reset` documentation more clear ## Solution Added a doc comment
1 parent 53157c0 commit 1f0fa59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/bevy_time/src/stopwatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl Stopwatch {
186186
self.paused
187187
}
188188

189-
/// Resets the stopwatch.
189+
/// Resets the stopwatch. The reset doesn’t affect the paused state of the stopwatch.
190190
///
191191
/// # Examples
192192
/// ```

crates/bevy_time/src/timer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl Timer {
292292
self.stopwatch.paused()
293293
}
294294

295-
/// Resets the timer. the reset doesn't affect the `paused` state of the timer.
295+
/// Resets the timer. The reset doesn't affect the `paused` state of the timer.
296296
///
297297
/// See also [`Stopwatch::reset`](Stopwatch::reset).
298298
///

0 commit comments

Comments
 (0)