From cf86f275a9e5e9ad7f0912a1879148a8aad6a86d Mon Sep 17 00:00:00 2001 From: Dan Kov Date: Sat, 8 Oct 2022 14:51:21 +0000 Subject: [PATCH] Fix doc for Timer::percent_left (#6198) # Objective - Fix a mistake in documentation. --- crates/bevy_time/src/timer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_time/src/timer.rs b/crates/bevy_time/src/timer.rs index f94fbac76a..4661bbeae9 100644 --- a/crates/bevy_time/src/timer.rs +++ b/crates/bevy_time/src/timer.rs @@ -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 /// ```