Skip to content

Commit f157113

Browse files
fix interiormutableworld doc comments
1 parent 091856b commit f157113

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/bevy_ecs/src/world/interior_mutable_world.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::{
1414
use bevy_ptr::Ptr;
1515
use std::any::TypeId;
1616

17-
/// Variant of the [`World`] where resource and component accesses takes a `&World`, and the responsibility to avoid
17+
/// Variant of the [`World`] where resource and component accesses take `&self`, and the responsibility to avoid
1818
/// aliasing violations are given to the caller instead of being checked at compile-time by rust's unique XOR shared rule.
1919
///
2020
/// ### Rationale
@@ -46,9 +46,9 @@ use std::any::TypeId;
4646
/// use bevy_ecs::system::Resource;
4747
/// use bevy_ecs::world::interior_mutable_world::InteriorMutableWorld;
4848
///
49-
/// // INVARIANT: existance of this struct means that users of it are the only ones being able to access resources in the world
49+
/// // INVARIANT: existence of this struct means that users of it are the only ones being able to access resources in the world
5050
/// struct OnlyResourceAccessWorld<'w>(InteriorMutableWorld<'w>);
51-
/// // INVARIANT: existance of this struct means that users of it are the only ones being able to access components in the world
51+
/// // INVARIANT: existence of this struct means that users of it are the only ones being able to access components in the world
5252
/// struct OnlyComponentAccessWorld<'w>(InteriorMutableWorld<'w>);
5353
///
5454
/// impl<'w> OnlyResourceAccessWorld<'w> {

0 commit comments

Comments
 (0)