Skip to content

Commit

Permalink
Fix tiny state docs inconsistency (bevyengine#1764)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixentus committed Mar 26, 2021
1 parent 7a51139 commit 80bd378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/schedule/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 80bd378

Please sign in to comment.