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> {
8282 /// **Note**: You *must not* hand out a `&World` reference to arbitrary safe code when the [`InteriorMutableWorld`] is currently
8383 /// being used for mutable accesses.
8484 ///
85- /// SAFETY :
85+ /// # Safety :
8686 /// - the world must not be used to access any resources or components. You can use it to safely access metadata.
8787 pub unsafe fn world ( & self ) -> & ' w World {
8888 self . 0
@@ -386,7 +386,7 @@ impl<'w> InteriorMutableEntityRef<'w> {
386386 last_change_tick : u32 ,
387387 change_tick : u32 ,
388388 ) -> Option < Mut < ' w , T > > {
389- // # Safety
389+ // SAFETY:
390390 // - `storage_type` is correct
391391 // - `location` is valid
392392 // - aliasing rules are ensured by caller
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ impl World {
117117 }
118118
119119 /// Creates a new [`InteriorMutableWorld`] with read+write access from a [&World](World).
120- /// This is only a temporary measure until every `&World` that is semantically a [InteriorMutableWorld]
120+ /// This is only a temporary measure until every `&World` that is semantically a [` InteriorMutableWorld` ]
121121 /// has been replaced.
122122 pub ( crate ) fn as_interior_mutable_migration_internal ( & self ) -> InteriorMutableWorld < ' _ > {
123123 InteriorMutableWorld :: new ( self )
You can’t perform that action at this time.
0 commit comments