Skip to content

Commit 68a9bca

Browse files
docs fixes
1 parent a5754cc commit 68a9bca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/bevy_ecs/src/world/interior_mutable_world.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl<'w> InteriorMutableWorld<'w> {
147147
/// # Safety
148148
/// It is the callers responsibility to ensure that
149149
/// - the [`InteriorMutableWorld`] has permission to access the resource
150-
/// - no other mutable references to the resource exist at the same time
150+
/// - no mutable reference to the resource exists at the same time
151151
#[inline]
152152
pub unsafe fn get_resource<R: Resource>(self) -> Option<&'w R> {
153153
self.0.get_resource::<R>()
@@ -163,7 +163,7 @@ impl<'w> InteriorMutableWorld<'w> {
163163
/// # Safety
164164
/// It is the callers responsibility to ensure that
165165
/// - the [`InteriorMutableWorld`] has permission to access the resource
166-
/// - no other mutable references to the resource exist at the same time
166+
/// - no mutable reference to the resource exists at the same time
167167
#[inline]
168168
pub unsafe fn get_resource_by_id(self, component_id: ComponentId) -> Option<Ptr<'w>> {
169169
self.0.get_resource_by_id(component_id)
@@ -174,7 +174,7 @@ impl<'w> InteriorMutableWorld<'w> {
174174
/// # Safety
175175
/// It is the callers responsibility to ensure that
176176
/// - the [`InteriorMutableWorld`] has permission to access the resource
177-
/// - no other mutable references to the resource exist at the same time
177+
/// - no mutable reference to the resource exists at the same time
178178
#[inline]
179179
pub unsafe fn get_non_send_resource<R: 'static>(self) -> Option<&'w R> {
180180
self.0.get_non_send_resource()
@@ -193,7 +193,7 @@ impl<'w> InteriorMutableWorld<'w> {
193193
/// # Safety
194194
/// It is the callers responsibility to ensure that
195195
/// - the [`InteriorMutableWorld`] has permission to access the resource
196-
/// - no other mutable references to the resource exist at the same time
196+
/// - no mutable reference to the resource exists at the same time
197197
#[inline]
198198
pub unsafe fn get_non_send_resource_by_id(self, component_id: ComponentId) -> Option<Ptr<'w>> {
199199
self.0

crates/bevy_ecs/src/world/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ impl World {
108108
self.id
109109
}
110110

111-
/// Creates a new [`InteriorMutableWorld`] view with complete read+write access
111+
/// Creates a new [`InteriorMutableWorld`] view with complete read+write access.
112112
pub fn as_interior_mutable(&mut self) -> InteriorMutableWorld<'_> {
113113
InteriorMutableWorld::new(self)
114114
}
115-
/// Creates a new [`InteriorMutableWorld`] view only read access to everything
115+
/// Creates a new [`InteriorMutableWorld`] view with only read access to everything.
116116
pub fn as_interior_mutable_readonly(&self) -> InteriorMutableWorld<'_> {
117117
InteriorMutableWorld::new(self)
118118
}

0 commit comments

Comments
 (0)