Skip to content

Commit 8783fae

Browse files
committed
Use "many" instead of "multiple" consistently (#4463)
We missed a couple of these renames in #4384
1 parent 5a297d7 commit 8783fae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/bevy_ecs/src/system/query.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ where
625625
///
626626
/// Note that the unlike [`Query::get_many_mut`], the entities passed in do not need to be unique.
627627
///
628-
/// See [`Query::multiple`] for the infallible equivalent.
628+
/// See [`Query::many`] for the infallible equivalent.
629629
#[inline]
630630
pub fn get_many<const N: usize>(
631631
&self,
@@ -669,7 +669,7 @@ where
669669
/// fn check_all_targets_in_range(targeting_query: Query<(Entity, &Targets, &Position)>, targets_query: Query<&Position>){
670670
/// for (targeting_entity, targets, origin) in targeting_query.iter(){
671671
/// // We can use "destructuring" to unpack the results nicely
672-
/// let [target_1, target_2, target_3] = targets_query.multiple(targets.0);
672+
/// let [target_1, target_2, target_3] = targets_query.many(targets.0);
673673
///
674674
/// assert!(target_1.distance(origin) <= 5);
675675
/// assert!(target_2.distance(origin) <= 5);
@@ -678,7 +678,7 @@ where
678678
/// }
679679
/// ```
680680
#[inline]
681-
pub fn multiple<const N: usize>(
681+
pub fn many<const N: usize>(
682682
&self,
683683
entities: [Entity; N],
684684
) -> [<Q::ReadOnlyFetch as Fetch<'_, 's>>::Item; N] {
@@ -731,7 +731,7 @@ where
731731
/// In case of a nonexisting entity, duplicate entities or mismatched component, a [`QueryEntityError`] is
732732
/// returned instead.
733733
///
734-
/// See [`Query::multiple_mut`] for the infallible equivalent.
734+
/// See [`Query::many_mut`] for the infallible equivalent.
735735
#[inline]
736736
pub fn get_many_mut<const N: usize>(
737737
&mut self,
@@ -778,7 +778,7 @@ where
778778
/// fn spring_forces(spring_query: Query<&Spring>, mut mass_query: Query<(&Position, &mut Force)>){
779779
/// for spring in spring_query.iter(){
780780
/// // We can use "destructuring" to unpack our query items nicely
781-
/// let [(position_1, mut force_1), (position_2, mut force_2)] = mass_query.multiple_mut(spring.connected_entities);
781+
/// let [(position_1, mut force_1), (position_2, mut force_2)] = mass_query.many_mut(spring.connected_entities);
782782
///
783783
/// force_1.x += spring.strength * (position_1.x - position_2.x);
784784
/// force_1.y += spring.strength * (position_1.y - position_2.y);
@@ -790,7 +790,7 @@ where
790790
/// }
791791
/// ```
792792
#[inline]
793-
pub fn multiple_mut<const N: usize>(
793+
pub fn many_mut<const N: usize>(
794794
&mut self,
795795
entities: [Entity; N],
796796
) -> [<Q::Fetch as Fetch<'_, 's>>::Item; N] {

0 commit comments

Comments
 (0)