From 7c03ca2562781ad74092cf9798e81e0bcfac284f Mon Sep 17 00:00:00 2001 From: mgi388 <135186256+mgi388@users.noreply.github.com> Date: Sun, 6 Oct 2024 09:24:03 +1100 Subject: [PATCH] Fix QuerySingle -> Single missed in example (#15667) Missed in https://github.com/bevyengine/bevy/pull/15507 --- examples/ecs/fallible_params.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ecs/fallible_params.rs b/examples/ecs/fallible_params.rs index b4f2ec7a19e2a..6100154c2828e 100644 --- a/examples/ecs/fallible_params.rs +++ b/examples/ecs/fallible_params.rs @@ -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` ensures that the system runs ONLY when zero or one matching entity exists. + // `Option` ensures that the system runs ONLY when zero or one matching entity exists. enemy: Option, Without)>>, time: Res