Skip to content

Commit c3ad453

Browse files
committed
spaces
1 parent 805eb0e commit c3ad453

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/bevy_ecs/src/world/entity_ref.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ impl<'w> EntityRef<'w> {
7070
/// Gets an immutable reference to the component of type `T` associated with
7171
/// this entity without ensuring there are no unique borrows active and without
7272
/// ensuring that the returned reference will stay valid.
73+
///
7374
/// # Safety
75+
///
7476
/// - The returned reference must never alias a mutable borrow of this component.
7577
/// - The returned reference must not be used after this component is moved which
7678
/// may happen from **any** `insert_component`, `remove_component` or `despawn`
@@ -85,7 +87,9 @@ impl<'w> EntityRef<'w> {
8587
/// Gets a mutable reference to the component of type `T` associated with
8688
/// this entity without ensuring there are no other borrows active and without
8789
/// ensuring that the returned reference will stay valid.
90+
///
8891
/// # Safety
92+
///
8993
/// - The returned reference must never alias a mutable borrow of this component.
9094
/// - The returned reference must not be used after this component is moved which
9195
/// may happen from **any** `insert_component`, `remove_component` or `despawn`
@@ -176,7 +180,9 @@ impl<'w> EntityMut<'w> {
176180
/// Gets an immutable reference to the component of type `T` associated with
177181
/// this entity without ensuring there are no unique borrows active and without
178182
/// ensuring that the returned reference will stay valid.
183+
///
179184
/// # Safety
185+
///
180186
/// - The returned reference must never alias a mutable borrow of this component.
181187
/// - The returned reference must not be used after this component is moved which
182188
/// may happen from **any** `insert_component`, `remove_component` or `despawn`
@@ -191,7 +197,9 @@ impl<'w> EntityMut<'w> {
191197
/// Gets a mutable reference to the component of type `T` associated with
192198
/// this entity without ensuring there are no other borrows active and without
193199
/// ensuring that the returned reference will stay valid.
200+
///
194201
/// # Safety
202+
///
195203
/// - The returned reference must never alias a mutable borrow of this component.
196204
/// - The returned reference must not be used after this component is moved which
197205
/// may happen from **any** `insert_component`, `remove_component` or `despawn`

0 commit comments

Comments
 (0)