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
@@ -386,7 +386,7 @@ impl<'w> InteriorMutableEntityRef<'w> {
386
386
last_change_tick : u32 ,
387
387
change_tick : u32 ,
388
388
) -> Option < Mut < ' w , T > > {
389
- // # Safety
389
+ // SAFETY:
390
390
// - `storage_type` is correct
391
391
// - `location` is valid
392
392
// - aliasing rules are ensured by caller
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ impl World {
117
117
}
118
118
119
119
/// 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` ]
121
121
/// has been replaced.
122
122
pub ( crate ) fn as_interior_mutable_migration_internal ( & self ) -> InteriorMutableWorld < ' _ > {
123
123
InteriorMutableWorld :: new ( self )
You can’t perform that action at this time.
0 commit comments