mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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.
This commit is contained in:
parent
019432af2e
commit
2551ccbe34
1 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ impl<'w> UnsafeWorldCell<'w> {
|
|||
/// it is likely *unsound* to call this method.
|
||||
/// - The returned `&mut World` *must* be unique: it must never be allowed to exist
|
||||
/// at the same time as any other borrows of the world or any accesses to its data.
|
||||
/// This includes safe ways of accessing world data, such as [`UnsafeWorldCell::archetypes`]:
|
||||
/// This includes safe ways of accessing world data, such as [`UnsafeWorldCell::archetypes`].
|
||||
/// - Note that the `&mut World` *may* exist at the same time as instances of `UnsafeWorldCell`,
|
||||
/// so long as none of those instances are used to access world data in any way
|
||||
/// while the mutable borrow is active.
|
||||
|
@ -127,7 +127,7 @@ impl<'w> UnsafeWorldCell<'w> {
|
|||
///
|
||||
/// // !!This is unsound!! Even though this method is safe, we cannot call it until
|
||||
/// // `world_mut` is no longer active.
|
||||
/// let tick = world_cell.read_change_tick();
|
||||
/// let tick = world_cell.change_tick();
|
||||
///
|
||||
/// // Use mutable access to spawn an entity.
|
||||
/// world_mut.spawn(Player);
|
||||
|
|
Loading…
Reference in a new issue