Fix typo in comment (#11486)

# Objective

- `World::get_resource`'s comment on it's `unsafe` usage meant to say
"mutably" but instead said "immutably."
- Fixes #11430.

## Solution

- Replace "immutably" with "mutably."
This commit is contained in:
BD103 2024-01-22 21:50:06 -05:00 committed by GitHub
parent 1d17453697
commit 593d41ce58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1331,7 +1331,7 @@ impl World {
pub fn get_resource<R: Resource>(&self) -> Option<&R> {
// SAFETY:
// - `as_unsafe_world_cell_readonly` gives permission to access everything immutably
// - `&self` ensures nothing in world is borrowed immutably
// - `&self` ensures nothing in world is borrowed mutably
unsafe { self.as_unsafe_world_cell_readonly().get_resource() }
}