Add documentation to UnsafeWorldCell::increment_change_tick (#8697)

# Objective

This function does not have documentation.

## Solution

Copy the docs from `World::increment_change_tick`.
This commit is contained in:
JoJoJet 2023-05-28 08:46:24 -04:00 committed by GitHub
parent a21bc41cca
commit d628ae808f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1472,7 +1472,7 @@ impl World {
}
}
/// Increments the world's current change tick, and returns the old value.
/// Increments the world's current change tick and returns the old value.
#[inline]
pub fn increment_change_tick(&self) -> Tick {
let prev_tick = self.change_tick.fetch_add(1, Ordering::AcqRel);

View File

@ -253,6 +253,7 @@ impl<'w> UnsafeWorldCell<'w> {
unsafe { self.world_metadata() }.last_change_tick()
}
/// Increments the world's current change tick and returns the old value.
#[inline]
pub fn increment_change_tick(self) -> Tick {
// SAFETY: