Skip to content

Commit

Permalink
Improve comment on discard_overstep
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Cecile <[email protected]>
  • Loading branch information
NiseVoid and alice-i-cecile authored Nov 9, 2023
1 parent d5272ae commit 4f8874f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/bevy_time/src/fixed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ impl Time<Fixed> {
self.context().overstep
}

/// Discard a part of the overstep amount. If `discard` is higher than overstep,
/// overstep becomes zero.
/// Discard a part of the overstep amount.
///
/// If `discard` is higher than overstep, the overstep becomes zero.
#[inline]
pub fn discard_overstep(&mut self, discard: Duration) {
let context = self.context_mut();
Expand Down

0 comments on commit 4f8874f

Please sign in to comment.