Skip to content

Commit de08859

Browse files
committed
Fix doc links in private items
1 parent b608825 commit de08859

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

crates/bevy_ecs/src/bundle/info.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ impl BundleInfo {
209209
/// For example, if the original archetype already has `ComponentA` and `T` also has `ComponentA`, the status
210210
/// should be `Existing`. If the original archetype does not have `ComponentA`, the status should be `Added`.
211211
///
212-
/// When "inserting" a bundle into an existing entity, [`ArchetypeAfterBundleInsert`]
212+
/// When "inserting" a bundle into an existing entity, [`ArchetypeAfterBundleInsert`](crate::archetype::SpawnBundleStatus)
213213
/// should be used, which will report `Added` vs `Existing` status based on the current archetype's structure.
214214
///
215-
/// When spawning a bundle, [`SpawnBundleStatus`] can be used instead, which removes the need
216-
/// to look up the [`ArchetypeAfterBundleInsert`] in the archetype graph, which requires
217-
/// ownership of the entity's current archetype.
215+
/// When spawning a bundle, [`SpawnBundleStatus`](crate::archetype::SpawnBundleStatus) can be used instead,
216+
/// which removes the need to look up the [`ArchetypeAfterBundleInsert`](crate::archetype::ArchetypeAfterBundleInsert)
217+
/// in the archetype graph, which requires ownership of the entity's current archetype.
218218
///
219219
/// `table` must be the "new" table for `entity`. `table_row` must have space allocated for the
220220
/// `entity`, `bundle` must match this [`BundleInfo`]'s type
@@ -462,7 +462,8 @@ impl Bundles {
462462
}
463463

464464
/// # Safety
465-
/// This [`BundleId`] must have been initialized with a single [`Component`] (via [`init_component_info`](Self::init_dynamic_info))
465+
/// This [`BundleId`] must have been initialized with a single [`Component`](crate::component::Component)
466+
/// (via [`init_component_info`](Self::init_dynamic_info))
466467
pub(crate) unsafe fn get_storage_unchecked(&self, id: BundleId) -> StorageType {
467468
*self
468469
.dynamic_component_storages
@@ -471,7 +472,8 @@ impl Bundles {
471472
}
472473

473474
/// # Safety
474-
/// This [`BundleId`] must have been initialized with multiple [`Component`]s (via [`init_dynamic_info`](Self::init_dynamic_info))
475+
/// This [`BundleId`] must have been initialized with multiple [`Component`](crate::component::Component)s
476+
/// (via [`init_dynamic_info`](Self::init_dynamic_info))
475477
pub(crate) unsafe fn get_storages_unchecked(&mut self, id: BundleId) -> &mut Vec<StorageType> {
476478
self.dynamic_bundle_storages
477479
.get_mut(&id)

0 commit comments

Comments
 (0)