Fix docs for fixed timestep (#8363)
# Objective The docs for `FixedTime::expend` are unfinished.
This commit is contained in:
parent
4805e48da9
commit
1074a41b87
@ -65,7 +65,8 @@ impl FixedTime {
|
|||||||
|
|
||||||
/// Expends one `period` of accumulated time.
|
/// 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> {
|
pub fn expend(&mut self) -> Result<(), FixedUpdateError> {
|
||||||
if let Some(new_value) = self.accumulated.checked_sub(self.period) {
|
if let Some(new_value) = self.accumulated.checked_sub(self.period) {
|
||||||
self.accumulated = new_value;
|
self.accumulated = new_value;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user