From b6088255cb65b39e0a5e2cc3f2bc5588210efc12 Mon Sep 17 00:00:00 2001 From: Giacomo Stevanato Date: Thu, 10 Jul 2025 19:47:06 +0200 Subject: [PATCH] Fix doc links --- crates/bevy_ecs/src/bundle/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/bundle/mod.rs b/crates/bevy_ecs/src/bundle/mod.rs index f195bf2410..956b478c5e 100644 --- a/crates/bevy_ecs/src/bundle/mod.rs +++ b/crates/bevy_ecs/src/bundle/mod.rs @@ -19,7 +19,7 @@ pub use info::*; /// Derive the [`Bundle`] trait /// /// You can apply this derive macro to structs that are -/// composed of [`Component`]s or +/// composed of [`Component`](crate::component::Component)s or /// other [`Bundle`]s. /// /// ## Attributes @@ -183,6 +183,7 @@ use bevy_ptr::OwningPtr; /// That is, there is no safe way to implement this trait, and you must not do so. /// If you want a type to implement [`Bundle`], you must use [`derive@Bundle`](derive@Bundle). /// +/// [`Component`]: crate::component::Component /// [`Query`]: crate::system::Query // Some safety points: // - [`Bundle::component_ids`] must return the [`ComponentId`] for each component type in the @@ -246,7 +247,8 @@ pub trait DynamicBundle { fn get_components(self, func: &mut impl FnMut(StorageType, OwningPtr<'_>)) -> Self::Effect; } -/// An operation on an [`Entity`] that occurs _after_ inserting the [`Bundle`] that defined this bundle effect. +/// An operation on an [`Entity`](crate::entity::Entity) that occurs _after_ inserting the +/// [`Bundle`] that defined this bundle effect. /// The order of operations is: /// /// 1. The [`Bundle`] is inserted on the entity