Skip to content

Commit fd7500a

Browse files
carteugineerd
andcommitted
Apply suggestions from code review
Co-authored-by: eugineerd <70062110+eugineerd@users.noreply.github.com>
1 parent 2854558 commit fd7500a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/bevy_ecs/src/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ impl ComponentInfo {
799799
self.descriptor.mutable
800800
}
801801

802-
/// Returns `true` if the current component is mutable.
802+
/// Returns [`ComponentCloneBehavior`] of the current component.
803803
#[inline]
804804
pub fn clone_behavior(&self) -> &ComponentCloneBehavior {
805805
&self.descriptor.clone_behavior

crates/bevy_ecs/src/entity/clone_entities.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ impl<'w> EntityClonerBuilder<'w> {
581581
self.entity_cloner.clone_entity(self.world, source, target);
582582
self
583583
}
584-
/// Finishes configuring the builder and clones `source` entity to `target`.
584+
/// Finishes configuring [`EntityCloner`] returns it.
585585
pub fn finish(self) -> EntityCloner {
586586
self.entity_cloner
587587
}

0 commit comments

Comments
 (0)