We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76f7b84 commit a849db1Copy full SHA for a849db1
1 file changed
crates/state-machine/api/src/spec.rs
@@ -19,8 +19,7 @@ pub trait StateMachineSpec {
19
/// Actions MUST be replay safe.
20
type Action;
21
22
- /// The state transition function. Takes config, mutable state, and input, updating the mutable
23
- /// state. Should return true if there was a state change, false if no change
+ /// The state transition function. Takes config, state, and input, returning the next state.
24
fn stf(config: &Self::Config, state: Self::State, input: Self::Input) -> Self::State;
25
26
/// Emit actions based on current state.
0 commit comments