File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
crates/bevy_ecs/src/world Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ impl<'w> InteriorMutableWorld<'w> {
82
82
/// **Note**: You *must not* hand out a `&World` reference to arbitrary safe code when the [`InteriorMutableWorld`] is currently
83
83
/// being used for mutable accesses.
84
84
///
85
- /// SAFETY :
85
+ /// # Safety :
86
86
/// - the world must not be used to access any resources or components. You can use it to safely access metadata.
87
87
pub unsafe fn world ( & self ) -> & ' w World {
88
88
self . 0
@@ -409,7 +409,7 @@ impl<'w> InteriorMutableEntityRef<'w> {
409
409
last_change_tick : u32 ,
410
410
change_tick : u32 ,
411
411
) -> Option < Mut < ' w , T > > {
412
- // # Safety
412
+ // SAFETY:
413
413
// - `storage_type` is correct
414
414
// - `location` is valid
415
415
// - aliasing rules are ensured by caller
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ impl World {
116
116
}
117
117
118
118
/// Creates a new [`InteriorMutableWorld`] with read+write access from a [&World](World).
119
- /// This is only a temporary measure until every `&World` that is semantically a [InteriorMutableWorld]
119
+ /// This is only a temporary measure until every `&World` that is semantically a [` InteriorMutableWorld` ]
120
120
/// has been replaced.
121
121
pub ( crate ) fn as_interior_mutable_migration_internal ( & self ) -> InteriorMutableWorld < ' _ > {
122
122
InteriorMutableWorld :: new ( self )
You can’t perform that action at this time.
0 commit comments