Skip to content

Commit f68ac41

Browse files
committed
Rename type arg II to EntityList.
1 parent 3347d77 commit f68ac41

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
@@ -1156,11 +1156,11 @@ impl<'w, 's, Q: WorldQuery, F: WorldQuery> Query<'w, 's, Q, F> {
11561156
/// }
11571157
/// # bevy_ecs::system::assert_is_system(system);
11581158
/// ```
1159-
pub fn many_iter<I, II, E>(&self, entities: II) -> QueryManyIter<'_, '_, I, Q, F, E>
1159+
pub fn many_iter<I, EntityList, E>(&self, entities: EntityList) -> QueryManyIter<'_, '_, I, Q, F, E>
11601160
where
11611161
E: Borrow<Entity>,
11621162
I: Iterator<Item = E>,
1163-
II: IntoIterator<IntoIter = I>,
1163+
EntityList: IntoIterator<IntoIter = I>,
11641164
{
11651165
QueryManyIter {
11661166
entities: entities.into_iter(),
@@ -1195,10 +1195,10 @@ impl<'w, 's, Q: WorldQuery, F: WorldQuery> Query<'w, 's, Q, F> {
11951195
/// }
11961196
/// # bevy_ecs::system::assert_is_system(system);
11971197
/// ```
1198-
pub fn many_for_each<II, E>(&self, entities: II, f: impl Fn(ROQueryItem<'_, Q>))
1198+
pub fn many_for_each<EntityList, E>(&self, entities: EntityList, f: impl Fn(ROQueryItem<'_, Q>))
11991199
where
12001200
E: Borrow<Entity>,
1201-
II: IntoIterator<Item = E>,
1201+
EntityList: IntoIterator<Item = E>,
12021202
{
12031203
entities.into_iter().map(|e| *e.borrow()).for_each(|input| {
12041204
if let Ok(item) = self.get(input) {
@@ -1235,10 +1235,10 @@ impl<'w, 's, Q: WorldQuery, F: WorldQuery> Query<'w, 's, Q, F> {
12351235
/// }
12361236
/// # bevy_ecs::system::assert_is_system(system);
12371237
/// ```
1238-
pub fn many_for_each_mut<II, E>(&mut self, entities: II, mut f: impl FnMut(QueryItem<'_, Q>))
1238+
pub fn many_for_each_mut<EntityList, E>(&mut self, entities: EntityList, mut f: impl FnMut(QueryItem<'_, Q>))
12391239
where
12401240
E: Borrow<Entity>,
1241-
II: IntoIterator<Item = E>,
1241+
EntityList: IntoIterator<Item = E>,
12421242
{
12431243
entities.into_iter().map(|e| *e.borrow()).for_each(|entity| {
12441244
if let Ok(item) = self.get_mut(entity) {

0 commit comments

Comments
 (0)