Skip to content

Commit 7b62e85

Browse files
authored
Fix a comment error in example system_stepping.rs (#20663)
# Objective Examples ECS system_stepping.rs : ```rust println!( r#" .................................... in order of one, two, three. Stepping stops system execution in the Update schedule when it encounters the breakpoint for update_system_three(). // <------ ................."# ); let mut stepping = app.world_mut().resource_mut::<Stepping>(); stepping.set_breakpoint(Update, update_system_two); // <------ stepping.continue_frame(); app.update(); .................... ``` I think this should be "breakpoint for update_system_two()." instead of "breakpoint for update_system_three().". ## Solution Change `update_system_three` to `update_system_two` in `println!` . ## Testing Only modified one comment, not tested.
1 parent 46a27d8 commit 7b62e85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ecs/system_stepping.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fn main() {
151151
they form a chained dependency on update_system_one() and run
152152
in order of one, two, three. Stepping stops system execution in
153153
the Update schedule when it encounters the breakpoint for
154-
update_system_three().
154+
update_system_two().
155155
During the step we run update_system_two() along with the
156156
pre_update_system().
157157
During the final continue pre_update_system() and

0 commit comments

Comments
 (0)