From 80bd378aa005877bb4b05d80ac6638a0e87da43d Mon Sep 17 00:00:00 2001 From: Ixentus Date: Fri, 26 Mar 2021 18:30:28 +0000 Subject: [PATCH] Fix tiny state docs inconsistency (#1764) @TheRawMeatball --- crates/bevy_ecs/src/schedule/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/schedule/state.rs b/crates/bevy_ecs/src/schedule/state.rs index ffbf31acbf..f30592b55b 100644 --- a/crates/bevy_ecs/src/schedule/state.rs +++ b/crates/bevy_ecs/src/schedule/state.rs @@ -11,7 +11,7 @@ use thiserror::Error; /// ### Stack based state machine /// -/// This state machine has four operations: Push, Pop, Next and Replace. +/// This state machine has four operations: Push, Pop, Set and Replace. /// * Push pushes a new state to the state stack, pausing the previous state /// * Pop removes the current state, and unpauses the last paused state /// * Set replaces the active state with a new one @@ -349,7 +349,7 @@ where Ok(()) } - /// Same as [Self::next], but does a pop operation instead of a set operation + /// Same as [Self::set], but does a pop operation instead of a set operation pub fn pop(&mut self) -> Result<(), StateError> { if self.scheduled.is_some() { return Err(StateError::StateAlreadyQueued);