@@ -200,7 +200,7 @@ impl<'w> WorldCell<'w> {
200
200
// SAFETY: `WorldCell` only makes a `&mut World` on drop so its fine to access metadata here
201
201
let component_id = unsafe { self . world . components ( ) } . get_resource_id ( TypeId :: of :: < T > ( ) ) ?;
202
202
203
- // SAFETY: `WorldCell` onyl makes a `&mut World` on drop so its fine to access metadata here
203
+ // SAFETY: `WorldCell` only makes a `&mut World` on drop so its fine to access metadata here
204
204
let archetype_component_id = unsafe {
205
205
self . world
206
206
. get_resource_archetype_component_id ( component_id) ?
@@ -235,10 +235,10 @@ impl<'w> WorldCell<'w> {
235
235
236
236
/// Gets a mutable reference to the resource of the given type
237
237
pub fn get_resource_mut < T : Resource > ( & self ) -> Option < WorldBorrowMut < ' _ , T > > {
238
- // SAFETY: `WorldCell` onyl makes a `&mut World` on drop so its fine to access metadata here
238
+ // SAFETY: `WorldCell` only makes a `&mut World` on drop so its fine to access metadata here
239
239
let component_id = unsafe { self . world . components ( ) } . get_resource_id ( TypeId :: of :: < T > ( ) ) ?;
240
240
241
- // SAFETY: `WorldCell` onyl makes a `&mut World` on drop so its fine to access metadata here
241
+ // SAFETY: `WorldCell` only makes a `&mut World` on drop so its fine to access metadata here
242
242
let archetype_component_id = unsafe {
243
243
self . world
244
244
. get_resource_archetype_component_id ( component_id) ?
@@ -272,10 +272,10 @@ impl<'w> WorldCell<'w> {
272
272
273
273
/// Gets an immutable reference to the non-send resource of the given type, if it exists.
274
274
pub fn get_non_send_resource < T : ' static > ( & self ) -> Option < WorldBorrow < ' _ , T > > {
275
- // SAFETY: `WorldCell` onyl makes a `&mut World` on drop so its fine to access metadata here
275
+ // SAFETY: `WorldCell` only makes a `&mut World` on drop so its fine to access metadata here
276
276
let component_id = unsafe { self . world . components ( ) } . get_resource_id ( TypeId :: of :: < T > ( ) ) ?;
277
277
278
- // SAFETY: `WorldCell` onyl makes a `&mut World` on drop so its fine to access metadata here
278
+ // SAFETY: `WorldCell` only makes a `&mut World` on drop so its fine to access metadata here
279
279
let archetype_component_id = unsafe {
280
280
self . world
281
281
. get_non_send_archetype_component_id ( component_id) ?
@@ -309,10 +309,10 @@ impl<'w> WorldCell<'w> {
309
309
310
310
/// Gets a mutable reference to the non-send resource of the given type, if it exists.
311
311
pub fn get_non_send_resource_mut < T : ' static > ( & self ) -> Option < WorldBorrowMut < ' _ , T > > {
312
- // SAFETY: `WorldCell` onyl makes a `&mut World` on drop so its fine to access metadata here
312
+ // SAFETY: `WorldCell` only makes a `&mut World` on drop so its fine to access metadata here
313
313
let component_id = unsafe { self . world . components ( ) } . get_resource_id ( TypeId :: of :: < T > ( ) ) ?;
314
314
315
- // SAFETY: `WorldCell` onyl makes a `&mut World` on drop so its fine to access metadata here
315
+ // SAFETY: `WorldCell` only makes a `&mut World` on drop so its fine to access metadata here
316
316
let archetype_component_id = unsafe {
317
317
self . world
318
318
. get_non_send_archetype_component_id ( component_id) ?
0 commit comments