Skip to content

Commit

Permalink
Fix README example syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldom-SE committed Jan 13, 2024
1 parent dec8a58 commit 118d18e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ commands.spawn((
// ... (other inserts)
MyInitialState::new(),
StateMachine::default()
.trans::<MyInitialState>(my_trigger_1, my_state_2)
.trans::<AnyState>(my_trigger_3, my_state_4)
.trans::<MyInitialState, _>(my_trigger_1, my_state_2)
.trans::<AnyState, _>(my_trigger_3, my_state_4)
.trans_builder(my_trigger_5, |my_state_6: &MyState6, trigger_data| {
make_state_7(my_state_6, trigger_data)
})
Expand Down

0 comments on commit 118d18e

Please sign in to comment.