Skip to content

Commit a38bd56

Browse files
WaterWhisperercart
authored andcommitted
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 7a7b9ff commit a38bd56

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
@@ -831,7 +831,7 @@ impl<'w, Filter: CloneByFilter> EntityClonerBuilder<'w, Filter> {
831831
/// Overrides the [`ComponentCloneBehavior`] for a component in this builder.
832832
/// This handler will be used to clone the component instead of the global one defined by the [`EntityCloner`].
833833
///
834-
/// See [Handlers section of `EntityClonerBuilder`](EntityClonerBuilder#handlers) to understand how this affects handler priority.
834+
/// See [Clone Behaviors section of `EntityCloner`](EntityCloner#clone-behaviors) to understand how this affects handler priority.
835835
pub fn override_clone_behavior<T: Component>(
836836
&mut self,
837837
clone_behavior: ComponentCloneBehavior,
@@ -847,7 +847,7 @@ impl<'w, Filter: CloneByFilter> EntityClonerBuilder<'w, Filter> {
847847
/// Overrides the [`ComponentCloneBehavior`] for a component with the given `component_id` in this builder.
848848
/// This handler will be used to clone the component instead of the global one defined by the [`EntityCloner`].
849849
///
850-
/// See [Handlers section of `EntityClonerBuilder`](EntityClonerBuilder#handlers) to understand how this affects handler priority.
850+
/// See [Clone Behaviors section of `EntityCloner`](EntityCloner#clone-behaviors) to understand how this affects handler priority.
851851
pub fn override_clone_behavior_with_id(
852852
&mut self,
853853
component_id: ComponentId,

0 commit comments

Comments
 (0)