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>
This commit is contained in:
Obdzen 2022-07-07 15:25:17 +00:00
parent bf1ca81779
commit cf200f09dd

View File

@ -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