Skip to content

Commit

Permalink
doctest references
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-Fenner committed Mar 3, 2025
1 parent b18df09 commit 22142c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/query/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ unsafe impl<D: QueryData> QueryData for crate::query::IncludeEntity<D> {
(item.0, D::shrink(item.1))
}

/// Fetch [`Self::Item`](`WorldQuery::Item`) for either the given `entity` in the current [`Table`],
/// Fetch [`Self::Item`](`QueryData::Item`) for either the given `entity` in the current [`Table`],
/// or for the given `entity` in the current [`Archetype`]. This must always be called after
/// [`WorldQuery::set_table`] with a `table_row` in the range of the current [`Table`] or after
/// [`WorldQuery::set_archetype`] with a `entity` in the current archetype.
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/query/world_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub unsafe trait WorldQuery {
) -> bool;
}

/// A wrapper type around a data query `D` which will return the queried [`Entity`]
/// A wrapper type around a data query `D` which will return the queried [`crate::entity::Entity`]
/// alongside the results from `D`.
///
/// This convenience wrapper can be used by calling [`super::iter::QueryIter::include_entity`] on
Expand Down

0 comments on commit 22142c9

Please sign in to comment.