Skip to content

Commit 9db6050

Browse files
committed
Include additional renames
1 parent 7b76aa3 commit 9db6050

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/src/query/iter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ impl<'w, 's, D: WorldQueryData, F: WorldQueryFilter, const K: usize>
335335
}
336336

337337
// PERF: can speed up the following code using `cursor.remaining()` instead of `next_item.is_none()`
338-
// when Q::IS_ARCHETYPAL && F::IS_ARCHETYPAL
338+
// when D::IS_ARCHETYPAL && F::IS_ARCHETYPAL
339339
//
340340
// let `i` be the index of `c`, the last cursor in `self.cursors` that
341341
// returns `K-i` or more elements.
@@ -533,7 +533,7 @@ impl<'w, 's, D: WorldQueryData, F: WorldQueryFilter> QueryIterationCursor<'w, 's
533533

534534
/// How many values will this cursor return at most?
535535
///
536-
/// Note that if `Q::IS_ARCHETYPAL && F::IS_ARCHETYPAL`, the return value
536+
/// Note that if `D::IS_ARCHETYPAL && F::IS_ARCHETYPAL`, the return value
537537
/// will be **the exact count of remaining values**.
538538
fn max_remaining(&self, tables: &'w Tables, archetypes: &'w Archetypes) -> usize {
539539
let remaining_matched: usize = if Self::IS_DENSE {

0 commit comments

Comments
 (0)