Skip to content

Commit 7c03ca2

Browse files
authored
Fix QuerySingle -> Single missed in example (#15667)
Missed in #15507
1 parent 42e0771 commit 7c03ca2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ecs/fallible_params.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ fn move_targets(mut enemies: Populated<(&mut Transform, &mut Enemy)>, time: Res<
134134
/// If there is one, player will track it.
135135
/// If there are too many enemies, the player will cease all action (the system will not run).
136136
fn move_pointer(
137-
// `QuerySingle` ensures the system runs ONLY when exactly one matching entity exists.
137+
// `Single` ensures the system runs ONLY when exactly one matching entity exists.
138138
mut player: Single<(&mut Transform, &Player)>,
139-
// `Option<QuerySingle>` ensures that the system runs ONLY when zero or one matching entity exists.
139+
// `Option<Single>` ensures that the system runs ONLY when zero or one matching entity exists.
140140
enemy: Option<Single<&Transform, (With<Enemy>, Without<Player>)>>,
141141
time: Res<Time>,
142142
) {

0 commit comments

Comments
 (0)