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 GitHub
parent f201a9df39
commit 711efed018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -788,8 +788,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