Skip to content

Commit

Permalink
Fix QuerySingle -> Single missed in example (#15667)
Browse files Browse the repository at this point in the history
Missed in #15507
  • Loading branch information
mgi388 authored Oct 5, 2024
1 parent 42e0771 commit 7c03ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/ecs/fallible_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ fn move_targets(mut enemies: Populated<(&mut Transform, &mut Enemy)>, time: Res<
/// If there is one, player will track it.
/// If there are too many enemies, the player will cease all action (the system will not run).
fn move_pointer(
// `QuerySingle` ensures the system runs ONLY when exactly one matching entity exists.
// `Single` ensures the system runs ONLY when exactly one matching entity exists.
mut player: Single<(&mut Transform, &Player)>,
// `Option<QuerySingle>` ensures that the system runs ONLY when zero or one matching entity exists.
// `Option<Single>` ensures that the system runs ONLY when zero or one matching entity exists.
enemy: Option<Single<&Transform, (With<Enemy>, Without<Player>)>>,
time: Res<Time>,
) {
Expand Down

0 comments on commit 7c03ca2

Please sign in to comment.