Skip to content

Commit

Permalink
Fix doc for Timer::percent_left (bevyengine#6198)
Browse files Browse the repository at this point in the history
# Objective

- Fix a mistake in documentation.
  • Loading branch information
jiftoo authored and james7132 committed Oct 19, 2022
1 parent 92ee96b commit 587ab64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_time/src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ impl Timer {
self.elapsed().as_secs_f32() / self.duration().as_secs_f32()
}

/// Returns the percentage of the timer remaining time (goes from 0.0 to 1.0).
/// Returns the percentage of the timer remaining time (goes from 1.0 to 0.0).
///
/// # Examples
/// ```
Expand Down

0 comments on commit 587ab64

Please sign in to comment.