Skip to content

Commit dd4add3

Browse files
clean up entity_location comments
1 parent bee0d92 commit dd4add3

File tree

1 file changed

+6
-6
lines changed
  • crates/bevy_ecs/src/storage

1 file changed

+6
-6
lines changed

crates/bevy_ecs/src/storage/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl Storages {
2929
/// Get a raw pointer to a particular [`Component`](crate::component::Component) and its [`ComponentTicks`] identified by their [`TypeId`]
3030
///
3131
/// # Safety
32-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
32+
/// - `location` must refer to an archetype that contains `entity`
3333
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
3434
/// - the caller must ensure that no aliasing rules are violated
3535
#[inline]
@@ -49,7 +49,7 @@ impl Storages {
4949
/// Get a raw pointer to a particular [`Component`](crate::component::Component) and its [`ComponentTicks`]
5050
///
5151
/// # Safety
52-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
52+
/// - `location` must refer to an archetype that contains `entity`
5353
/// - `component_id` must be valid
5454
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
5555
/// - the caller must ensure that no aliasing rules are violated
@@ -88,7 +88,7 @@ impl Storages {
8888
/// Get a raw pointer to a particular [`Component`](crate::component::Component) on a particular [`Entity`], identified by the component's type
8989
///
9090
/// # Safety
91-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
91+
/// - `location` must refer to an archetype that contains `entity`
9292
/// the archetype
9393
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
9494
/// - the caller must ensure that no aliasing rules are violated
@@ -109,7 +109,7 @@ impl Storages {
109109
/// Get a raw pointer to a particular [`Component`](crate::component::Component) on a particular [`Entity`] in the provided [`World`](crate::world::World).
110110
///
111111
/// # Safety
112-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
112+
/// - `location` must refer to an archetype that contains `entity`
113113
/// the archetype
114114
/// - `component_id` must be valid
115115
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
@@ -144,7 +144,7 @@ impl Storages {
144144
/// Get a raw pointer to the [`ComponentTicks`] on a particular [`Entity`], identified by the component's [`TypeId`]
145145
///
146146
/// # Safety
147-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
147+
/// - `location` must refer to an archetype that contains `entity`
148148
/// the archetype
149149
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
150150
/// - the caller must ensure that no aliasing rules are violated
@@ -165,7 +165,7 @@ impl Storages {
165165
/// Get a raw pointer to the [`ComponentTicks`] on a particular [`Entity`]
166166
///
167167
/// # Safety
168-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
168+
/// - `location` must refer to an archetype that contains `entity`
169169
/// the archetype
170170
/// - `component_id` must be valid
171171
/// - `Archetypes` and `Components` must come from the world this of this `Storages`

0 commit comments

Comments
 (0)