Fix typo in World::observe (#14492)

# Objective

- Fix a typo in the documentation for `World::observe`

## Solution

- Change `Spawn` to `Spawns` and `it's` to `its`
This commit is contained in:
thatchedroof 2024-07-27 06:55:44 -07:00 committed by GitHub
parent 724fe49c73
commit 4f5b8ca08c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -303,7 +303,7 @@ impl Observers {
}
impl World {
/// Spawn a "global" [`Observer`] and returns it's [`Entity`].
/// Spawns a "global" [`Observer`] and returns its [`Entity`].
pub fn observe<E: Event, B: Bundle, M>(
&mut self,
system: impl IntoObserverSystem<E, B, M>,