Skip to content

Commit

Permalink
doc: Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
shanecelis committed Nov 28, 2024
1 parent 212549b commit fbec223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ pub fn send_event<E: Event + Clone>(event: E) -> impl FnMut(EventWriter<E>) {
}
}

/// Trigger and event.
/// Trigger an event.
pub fn trigger<E: Event + Clone>(event: E) -> impl FnMut(Commands) {
move |mut commands: Commands| {
commands.trigger(event.clone());
}
}

/// Trigger and event with targets.
/// Trigger an event with targets.
pub fn trigger_targets<E: Event + Clone, T: TriggerTargets + Clone>(
event: E,
targets: T,
Expand Down

0 comments on commit fbec223

Please sign in to comment.