From 8b0d3a8fbb9c51d59a1fe145d107188baa2725d5 Mon Sep 17 00:00:00 2001 From: Joseph <21144246+JoJoJet@users.noreply.github.com> Date: Tue, 6 Feb 2024 21:46:44 -0800 Subject: [PATCH] Never use github suggestions to edit your code on a laptop --- crates/bevy_ecs/src/world/mod.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/bevy_ecs/src/world/mod.rs b/crates/bevy_ecs/src/world/mod.rs index 01e1fb07c864e4..e39f5abcfa3844 100644 --- a/crates/bevy_ecs/src/world/mod.rs +++ b/crates/bevy_ecs/src/world/mod.rs @@ -1889,14 +1889,6 @@ impl World { /// /// // Repeatedly run the update function until it requests a break. /// loop { - /// let control_flow = world.last_change_tick_scope(last_change_tick, |world| { - /// update_fn(world) - /// }); - /// - /// // End the loop when the closure returns `ControlFlow::Break`. - /// if control_flow.is_break() { - /// break; - /// } /// // Update once. /// let control_flow = world.last_change_tick_scope(last_change_tick, |world| { /// update_fn(world) @@ -1916,6 +1908,8 @@ impl World { /// # #[derive(Resource)] struct Count(u32); /// # let mut world = World::new(); /// # world.insert_resource(Count(0)); + /// # world.increment_change_tick(); + /// # /// # let saved_last_tick = world.last_change_tick(); /// # let mut num_updates = 0; /// # update_loop(&mut world, |world| {