Advanced Hands-on Rust: Inconsistent information on (page 89)

On top of page 89 it is shown how systems can be called on specific states and transitions. Example:

.add_systems(OnEnter, setup.run_if(in_state(GameState::PlayMyGame)))

whereas the code on page 93 does it differently:

.add_systems(OnEnter(GamePhase::Flapping), setup)

I guess that on page 89 the code for OnEnter and OnExit is wrong.