typo on schedule StateTransitions name in example (#8443)

# Objective

- Fix a typo

## Solution

- Fix the typo
This commit is contained in:
François 2023-04-20 13:33:45 +02:00 committed by GitHub
parent d8102a0a04
commit 347dc0982c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ fn main() {
.add_plugins(DefaultPlugins)
.add_state::<AppState>()
.add_systems(Startup, setup)
// This system runs when we enter `AppState::Menu`, during the `StateTransitions` schedule.
// This system runs when we enter `AppState::Menu`, during the `StateTransition` schedule.
// All systems from the exit schedule of the state we're leaving are run first,
// and then all systems from the enter schedule of the state we're entering are run second.
.add_systems(OnEnter(AppState::Menu), setup_menu)