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.
This commit is contained in:
JoJoJet 2023-03-31 12:54:36 -04:00 committed by Carter Anderson
parent 2bc71400d7
commit 8103ae7df4

View File

@ -791,8 +791,6 @@ impl<Q: WorldQuery, F: ReadOnlyWorldQuery> QueryState<Q, F> {
/// Runs `func` on each query result for the given [`World`]. This is faster than the equivalent
/// iter() method, but cannot be chained like a normal [`Iterator`].
///
/// This can only be called for read-only queries.
///
/// # Safety
///
/// This does not check for mutable query correctness. To be safe, make sure mutable queries