Skip to content

Commit

Permalink
Fix typo in Word::get_by_id docs (bevyengine#5246)
Browse files Browse the repository at this point in the history
I believe this should read `immutable` not `mutable`



Co-authored-by: Obdzen <108854527+Obdzen@users.noreply.github.com>
  • Loading branch information
2 people authored and inodentry committed Aug 8, 2022
1 parent 70c4cca commit a433534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/world/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a433534

Please sign in to comment.