Skip to content

Commit

Permalink
Improve EntityRef::get_change_ticks_by_id docs as suggested by jakobh…
Browse files Browse the repository at this point in the history
…ellermann from code review

Co-authored-by: Jakob Hellermann <jakob.hellermann@protonmail.com>
  • Loading branch information
sQu1rr and jakobhellermann authored Nov 24, 2022
1 parent f85989a commit aa68f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/world/entity_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl<'w> EntityRef<'w> {
/// Retrieves the change ticks for the given [`ComponentId`]. This can be useful for implementing change
/// detection in custom runtimes.
///
/// **You should prefer to use the typed API where possible and only
/// **You should prefer to use the typed API [`EntityRef::get_change_ticks`] where possible and only
/// use this in cases where the actual component types are not known at
/// compile time.**
#[inline]
Expand Down Expand Up @@ -238,7 +238,7 @@ impl<'w> EntityMut<'w> {
/// Retrieves the change ticks for the given [`ComponentId`]. This can be useful for implementing change
/// detection in custom runtimes.
///
/// **You should prefer to use the typed API where possible and only
/// **You should prefer to use the typed API [`EntityMut::get_change_ticks`] where possible and only
/// use this in cases where the actual component types are not known at
/// compile time.**
#[inline]
Expand Down

0 comments on commit aa68f2a

Please sign in to comment.