File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/bevy_ecs/src/world Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use crate::{
14
14
use bevy_ptr:: Ptr ;
15
15
use std:: any:: TypeId ;
16
16
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
18
18
/// aliasing violations are given to the caller instead of being checked at compile-time by rust's unique XOR shared rule.
19
19
///
20
20
/// ### Rationale
@@ -46,9 +46,9 @@ use std::any::TypeId;
46
46
/// use bevy_ecs::system::Resource;
47
47
/// use bevy_ecs::world::interior_mutable_world::InteriorMutableWorld;
48
48
///
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
50
50
/// 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
52
52
/// struct OnlyComponentAccessWorld<'w>(InteriorMutableWorld<'w>);
53
53
///
54
54
/// impl<'w> OnlyResourceAccessWorld<'w> {
You can’t perform that action at this time.
0 commit comments