From 95174f3c6e3e644e5cc53afb9c7bbf2facbd486a Mon Sep 17 00:00:00 2001 From: berry <36799498+berylllium@users.noreply.github.com> Date: Tue, 28 Jan 2025 06:20:31 +0100 Subject: [PATCH] Fix docs mistake in bevy_ecs::world (#17336) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Objective - Correct a mistake in the rustdoc for bevy_ecs::world::World. ## Solution - The rustdoc wrongly stated that "Each component can have up to one instance of each component type.". This sentence should presumably be "Each *Entity* can have up to one instance of each component type.". Applying this change makes the prior sentence "Each [`Entity`] has a set of components." redundant. --------- Co-authored-by: François Mockers --- crates/bevy_ecs/src/world/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/bevy_ecs/src/world/mod.rs b/crates/bevy_ecs/src/world/mod.rs index e42801c557..7c162e1d52 100644 --- a/crates/bevy_ecs/src/world/mod.rs +++ b/crates/bevy_ecs/src/world/mod.rs @@ -70,9 +70,8 @@ use core::panic::Location; /// Stores and exposes operations on [entities](Entity), [components](Component), resources, /// and their associated metadata. /// -/// Each [`Entity`] has a set of components. Each component can have up to one instance of each -/// component type. Entity components can be created, updated, removed, and queried using a given -/// [`World`]. +/// Each [`Entity`] has a set of unique components, based on their type. +/// Entity components can be created, updated, removed, and queried using a given /// /// For complex access patterns involving [`SystemParam`](crate::system::SystemParam), /// consider using [`SystemState`](crate::system::SystemState).