Skip to content

Commit 2551ccb

Browse files
authored
Rename a leftover usage of a renamed function read_change_tick (#8837)
# Objective The method `UnsafeWorldCell::read_change_tick` was renamed in #8588, but I forgot to update a usage of this method in a doctest. ## Solution Update the method call.
1 parent 019432a commit 2551ccb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/src/world/unsafe_world_cell.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl<'w> UnsafeWorldCell<'w> {
104104
/// it is likely *unsound* to call this method.
105105
/// - The returned `&mut World` *must* be unique: it must never be allowed to exist
106106
/// at the same time as any other borrows of the world or any accesses to its data.
107-
/// This includes safe ways of accessing world data, such as [`UnsafeWorldCell::archetypes`]:
107+
/// This includes safe ways of accessing world data, such as [`UnsafeWorldCell::archetypes`].
108108
/// - Note that the `&mut World` *may* exist at the same time as instances of `UnsafeWorldCell`,
109109
/// so long as none of those instances are used to access world data in any way
110110
/// while the mutable borrow is active.
@@ -127,7 +127,7 @@ impl<'w> UnsafeWorldCell<'w> {
127127
///
128128
/// // !!This is unsound!! Even though this method is safe, we cannot call it until
129129
/// // `world_mut` is no longer active.
130-
/// let tick = world_cell.read_change_tick();
130+
/// let tick = world_cell.change_tick();
131131
///
132132
/// // Use mutable access to spawn an entity.
133133
/// world_mut.spawn(Player);

0 commit comments

Comments
 (0)