Skip to content

Commit 95174f3

Browse files
beryllliummockersf
andauthored
Fix docs mistake in bevy_ecs::world (#17336)
# 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 <[email protected]>
1 parent 581034a commit 95174f3

File tree

1 file changed

+2
-3
lines changed
  • crates/bevy_ecs/src/world

1 file changed

+2
-3
lines changed

crates/bevy_ecs/src/world/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ use core::panic::Location;
7070
/// Stores and exposes operations on [entities](Entity), [components](Component), resources,
7171
/// and their associated metadata.
7272
///
73-
/// Each [`Entity`] has a set of components. Each component can have up to one instance of each
74-
/// component type. Entity components can be created, updated, removed, and queried using a given
75-
/// [`World`].
73+
/// Each [`Entity`] has a set of unique components, based on their type.
74+
/// Entity components can be created, updated, removed, and queried using a given
7675
///
7776
/// For complex access patterns involving [`SystemParam`](crate::system::SystemParam),
7877
/// consider using [`SystemState`](crate::system::SystemState).

0 commit comments

Comments
 (0)