From bbac5b1892f8f3ad67d4fc61730be128b345f7a2 Mon Sep 17 00:00:00 2001 From: Giacomo Stevanato Date: Tue, 15 Jul 2025 07:42:04 +0200 Subject: [PATCH] Fix docs --- crates/bevy_ecs/src/bundle/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/bundle/mod.rs b/crates/bevy_ecs/src/bundle/mod.rs index de22d8f033..26395e25c8 100644 --- a/crates/bevy_ecs/src/bundle/mod.rs +++ b/crates/bevy_ecs/src/bundle/mod.rs @@ -191,7 +191,7 @@ use bevy_ptr::OwningPtr; note = "consider annotating `{Self}` with `#[derive(Component)]` or `#[derive(Bundle)]`" )] pub unsafe trait Bundle: DynamicBundle + Send + Sync + 'static { - /// Gets this [`Bundle`]'s component ids, in the order of this bundle's [`Component`]s + /// Gets this [`Bundle`]'s component ids, in the order of this bundle's [`Component`](crate::component::Component)s fn component_ids( &self, components: &mut ComponentsRegistrator, @@ -221,6 +221,8 @@ pub unsafe trait Bundle: DynamicBundle + Send + Sync + 'static { /// Manual implementations of this trait are unsupported. /// That is, there is no safe way to implement this trait, and you must not do so. /// If you want a type to implement [`StaticBundle`], you must use [`derive@Bundle`](derive@Bundle). +/// +/// [`Component`]: crate::component::Component // // (bevy internal doc) Some safety points: // - [`StaticBundle::component_ids`] and [`StaticBundle::get_component_ids`] must match the behavior of [`Bundle::component_ids`]