mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
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:
parent
1d17453697
commit
593d41ce58
1 changed files with 1 additions and 1 deletions
|
@ -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() }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue