Skip to content

Commit a0510f4

Browse files
Update the doc link for Clone Behaviors section of EntityCloner (#22404)
# Objective Fixes #22302 ## Solution Replace doc comments "[Handlers section of `EntityClonerBuilder`](crate::entity::EntityClonerBuilder#handlers)" with "[Clone Behaviors section of `EntityCloner`](crate::entity::EntityCloner#clone-behaviors)" ## Testing Checked the updated document locally, now successfully points to the correct location
1 parent feb0dc6 commit a0510f4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/bevy_ecs/src/component/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ use core::{fmt::Debug, marker::PhantomData, ops::Deref};
433433
/// You can specify how the [`Component`] is cloned when deriving it.
434434
///
435435
/// Your options are the functions and variants of [`ComponentCloneBehavior`]
436-
/// See [Handlers section of `EntityClonerBuilder`](crate::entity::EntityClonerBuilder#handlers) to understand how this affects handler priority.
436+
/// See [Clone Behaviors section of `EntityCloner`](crate::entity::EntityCloner#clone-behaviors) to understand how this affects handler priority.
437437
/// ```
438438
/// # use bevy_ecs::prelude::*;
439439
///
@@ -556,7 +556,7 @@ pub trait Component: Send + Sync + 'static {
556556

557557
/// Called when registering this component, allowing to override clone function (or disable cloning altogether) for this component.
558558
///
559-
/// See [Handlers section of `EntityClonerBuilder`](crate::entity::EntityClonerBuilder#handlers) to understand how this affects handler priority.
559+
/// See [Clone Behaviors section of `EntityCloner`](crate::entity::EntityCloner#clone-behaviors) to understand how this affects handler priority.
560560
#[inline]
561561
fn clone_behavior() -> ComponentCloneBehavior {
562562
ComponentCloneBehavior::Default

crates/bevy_ecs/src/entity/clone_entities.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ impl<'w, Filter: CloneByFilter> EntityClonerBuilder<'w, Filter> {
836836
/// Overrides the [`ComponentCloneBehavior`] for a component in this builder.
837837
/// This handler will be used to clone the component instead of the global one defined by the [`EntityCloner`].
838838
///
839-
/// See [Handlers section of `EntityClonerBuilder`](EntityClonerBuilder#handlers) to understand how this affects handler priority.
839+
/// See [Clone Behaviors section of `EntityCloner`](EntityCloner#clone-behaviors) to understand how this affects handler priority.
840840
pub fn override_clone_behavior<T: Component>(
841841
&mut self,
842842
clone_behavior: ComponentCloneBehavior,
@@ -852,7 +852,7 @@ impl<'w, Filter: CloneByFilter> EntityClonerBuilder<'w, Filter> {
852852
/// Overrides the [`ComponentCloneBehavior`] for a component with the given `component_id` in this builder.
853853
/// This handler will be used to clone the component instead of the global one defined by the [`EntityCloner`].
854854
///
855-
/// See [Handlers section of `EntityClonerBuilder`](EntityClonerBuilder#handlers) to understand how this affects handler priority.
855+
/// See [Clone Behaviors section of `EntityCloner`](EntityCloner#clone-behaviors) to understand how this affects handler priority.
856856
pub fn override_clone_behavior_with_id(
857857
&mut self,
858858
component_id: ComponentId,

0 commit comments

Comments
 (0)