Skip to content

Commit

Permalink
Update to_readonly description
Browse files Browse the repository at this point in the history
This will reflect the added context in this PR
that is aware of what query items are
and that they can be read-only or not.
  • Loading branch information
Nilirad committed Aug 19, 2022
1 parent 68df415 commit 4aa7e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/system/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ impl<'w, 's, Q: WorldQuery, F: WorldQuery> Query<'w, 's, Q, F> {
}
}

/// Downgrades all data accessed in this query to a read-only form.
/// Returns another `Query` from this that fetches the read-only version of the query items.
///
/// For example, `Query<(&mut A, &B, &mut C), With<D>>` will become `Query<(&A, &B, &C), With<D>>`.
/// This can be useful when working around the borrow checker,
Expand Down

0 comments on commit 4aa7e20

Please sign in to comment.