mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
Fix docs for fixed timestep (#8363)
# Objective The docs for `FixedTime::expend` are unfinished.
This commit is contained in:
parent
4805e48da9
commit
1074a41b87
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ impl FixedTime {
|
|||
|
||||
/// Expends one `period` of accumulated time.
|
||||
///
|
||||
/// [`Err(FixedUpdateError`)] will be returned
|
||||
/// [`Err(FixedUpdateError`)] will be returned if there is
|
||||
/// not enough accumulated time to span an entire period.
|
||||
pub fn expend(&mut self) -> Result<(), FixedUpdateError> {
|
||||
if let Some(new_value) = self.accumulated.checked_sub(self.period) {
|
||||
self.accumulated = new_value;
|
||||
|
|
Loading…
Reference in a new issue