Skip to content

Commit 711efed

Browse files
authored
Fix inaccurate documentation on `QueryState::for_each_unchecked (#8277)
# Objective The documentation on `QueryState::for_each_unchecked` incorrectly says that it can only be used with read-only queries. ## Solution Remove the inaccurate sentence.
1 parent f201a9d commit 711efed

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

crates/bevy_ecs/src/query/state.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,6 @@ impl<Q: WorldQuery, F: ReadOnlyWorldQuery> QueryState<Q, F> {
788788
/// Runs `func` on each query result for the given [`World`]. This is faster than the equivalent
789789
/// iter() method, but cannot be chained like a normal [`Iterator`].
790790
///
791-
/// This can only be called for read-only queries.
792-
///
793791
/// # Safety
794792
///
795793
/// This does not check for mutable query correctness. To be safe, make sure mutable queries

0 commit comments

Comments
 (0)