Skip to content

Commit 9dadde0

Browse files
committed
Fixed a typo in an example state.rs (#7666)
# Objective Found and fixed a typo in an example ecs/state.rs
1 parent 0a9c469 commit 9dadde0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ecs/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414
.add_startup_system(setup)
1515
// This system runs when we enter `AppState::Menu`, during `CoreSet::StateTransitions`.
1616
// All systems from the exit schedule of the state we're leaving are run first,
17-
// and then all systems from the enter schedule of the state we're leaving are run second.
17+
// and then all systems from the enter schedule of the state we're entering are run second.
1818
.add_system_to_schedule(OnEnter(AppState::Menu), setup_menu)
1919
// By contrast, on_update systems are stored in the main schedule, during CoreSet::Update,
2020
// and simply check the value of the `State<T>` resource to see if they should run each frame.

0 commit comments

Comments
 (0)