Skip to content

Commit 1d7ccbb

Browse files
authored
Documentation fixes for Time<Fixed>
1 parent 259455d commit 1d7ccbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/bevy_time/src/fixed.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ use crate::{time::Time, virt::Virtual, FixedUpdate};
4444
/// [`set_max_delta()`](Time::set_max_delta) from virtual time. If the virtual
4545
/// clock is paused, the [`FixedUpdate`](bevy_app::FixedUpdate) schedule will
4646
/// not run. It is guaranteed that the [`elapsed()`](Time::elapsed) time in
47-
/// `Time<Fixed>` is always between the previous `elapsed()` and the next
47+
/// `Time<Fixed>` is always between the previous `elapsed()` and the current
4848
/// `elapsed()` value in `Time<Virtual>`, so the values are compatible.
4949
///
5050
/// Changing the timestep size while the game is running should not normally be
@@ -84,7 +84,7 @@ impl Time<Fixed> {
8484
///
8585
/// # Panics
8686
///
87-
/// Panics if `seconds` is negative or not finite.
87+
/// Panics if `seconds` is zero, negative or not finite.
8888
pub fn from_seconds(seconds: f64) -> Self {
8989
let mut ret = Self::default();
9090
ret.set_timestep_seconds(seconds);
@@ -140,7 +140,7 @@ impl Time<Fixed> {
140140
///
141141
/// # Panics
142142
///
143-
/// Panics if `seconds` is negative or not finite.
143+
/// Panics if `seconds` is zero, negative or not finite.
144144
#[inline]
145145
pub fn set_timestep_seconds(&mut self, seconds: f64) {
146146
assert!(

0 commit comments

Comments
 (0)