diff --git a/crates/bevy_ecs/src/schedule/state.rs b/crates/bevy_ecs/src/schedule/state.rs index f54a5f0eba..e324523e6b 100644 --- a/crates/bevy_ecs/src/schedule/state.rs +++ b/crates/bevy_ecs/src/schedule/state.rs @@ -247,7 +247,7 @@ impl State { Ok(()) } - /// Same as [Self::queue], but there is already a next state, it will be overwritten instead of failing + /// Same as [Self::queue], but if there is already a next state, it will be overwritten instead of failing pub fn overwrite_next(&mut self, state: T) -> Result<(), StateError> { if std::mem::discriminant(&self.current) == std::mem::discriminant(&state) { return Err(StateError::AlreadyInState);