From cf200f09dd7dd359a02f7cc7166b1485df276882 Mon Sep 17 00:00:00 2001 From: Obdzen Date: Thu, 7 Jul 2022 15:25:17 +0000 Subject: [PATCH] Fix typo in Word::get_by_id docs (#5246) I believe this should read `immutable` not `mutable` Co-authored-by: Obdzen <108854527+Obdzen@users.noreply.github.com> --- crates/bevy_ecs/src/world/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/world/mod.rs b/crates/bevy_ecs/src/world/mod.rs index 97bc75ebbb..fb36921baf 100644 --- a/crates/bevy_ecs/src/world/mod.rs +++ b/crates/bevy_ecs/src/world/mod.rs @@ -1468,7 +1468,7 @@ impl World { Some(()) } - /// Retrieves a mutable untyped reference to the given `entity`'s [Component] of the given [`ComponentId`]. + /// Retrieves an immutable untyped reference to the given `entity`'s [Component] of the given [`ComponentId`]. /// Returns [None] if the `entity` does not have a [Component] of the given type. /// /// **You should prefer to use the typed API [`World::get_mut`] where possible and only