Skip to content

Commit

Permalink
Never use github suggestions to edit your code on a laptop
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJoJet committed Feb 7, 2024
1 parent 6c79941 commit 8b0d3a8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/bevy_ecs/src/world/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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| {
Expand Down

0 comments on commit 8b0d3a8

Please sign in to comment.