Skip to content

Commit 3347d77

Browse files
committed
Rename method arguments.
1 parent 26a6b7e commit 3347d77

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

crates/bevy_ecs/src/system/query.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,10 +1156,10 @@ 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, T>(&self, entities: II) -> QueryManyIter<'_, '_, I, Q, F, T>
1159+
pub fn many_iter<I, II, E>(&self, entities: II) -> QueryManyIter<'_, '_, I, Q, F, E>
11601160
where
1161-
T: Borrow<Entity>,
1162-
I: Iterator<Item = T>,
1161+
E: Borrow<Entity>,
1162+
I: Iterator<Item = E>,
11631163
II: IntoIterator<IntoIter = I>,
11641164
{
11651165
QueryManyIter {
@@ -1195,14 +1195,14 @@ 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, T>(&self, input: II, cb: impl Fn(ROQueryItem<'_, Q>))
1198+
pub fn many_for_each<II, E>(&self, entities: II, f: impl Fn(ROQueryItem<'_, Q>))
11991199
where
1200-
T: Borrow<Entity>,
1201-
II: IntoIterator<Item = T>,
1200+
E: Borrow<Entity>,
1201+
II: IntoIterator<Item = E>,
12021202
{
1203-
input.into_iter().map(|e| *e.borrow()).for_each(|input| {
1203+
entities.into_iter().map(|e| *e.borrow()).for_each(|input| {
12041204
if let Ok(item) = self.get(input) {
1205-
cb(item);
1205+
f(item);
12061206
}
12071207
});
12081208
}
@@ -1235,14 +1235,14 @@ 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, T>(&mut self, input: II, mut cb: impl FnMut(QueryItem<'_, Q>))
1238+
pub fn many_for_each_mut<II, E>(&mut self, entities: II, mut f: impl FnMut(QueryItem<'_, Q>))
12391239
where
1240-
T: Borrow<Entity>,
1241-
II: IntoIterator<Item = T>,
1240+
E: Borrow<Entity>,
1241+
II: IntoIterator<Item = E>,
12421242
{
1243-
input.into_iter().map(|e| *e.borrow()).for_each(|entity| {
1243+
entities.into_iter().map(|e| *e.borrow()).for_each(|entity| {
12441244
if let Ok(item) = self.get_mut(entity) {
1245-
cb(item);
1245+
f(item);
12461246
}
12471247
});
12481248
}

0 commit comments

Comments
 (0)