From 8086d656f57518e7aab39c69ee58db6a04e01a8f Mon Sep 17 00:00:00 2001 From: arsmilitaris <139687379+arsmilitaris@users.noreply.github.com> Date: Thu, 27 Jul 2023 19:07:16 +0100 Subject: [PATCH] Fix timers.rs documentation The documentation for the `print_when_completed` system stated that this system would tick the `Timer` component on every entity in the scene. This was incorrect as this system only ticks the `Timer` on entities with the `PrintOnCompletionTimer` component. We suggest a modification to the documentation of this system to make it more clear. --- examples/ecs/timers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ecs/timers.rs b/examples/ecs/timers.rs index 7b3f09c8082af..7f20f080ff771 100644 --- a/examples/ecs/timers.rs +++ b/examples/ecs/timers.rs @@ -43,8 +43,8 @@ fn setup(mut commands: Commands) { ))); } -/// This system ticks all the `Timer` components on entities within the scene -/// using bevy's `Time` resource to get the delta between each update. +/// This system ticks the `Timer` on the entity with the `PrintOnCompletionTimer` +/// component using bevy's `Time` resource to get the delta between each update. fn print_when_completed(time: Res