From f9fc2f641f056e2d52d39740896e25814d3d43eb Mon Sep 17 00:00:00 2001 From: Mihai Galos Date: Sun, 6 Mar 2022 17:31:18 +0100 Subject: [PATCH] Make docs <100 chars wide --- vlib/statemachine/README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vlib/statemachine/README.md b/vlib/statemachine/README.md index 79f2dcbeed..360a605849 100644 --- a/vlib/statemachine/README.md +++ b/vlib/statemachine/README.md @@ -1,12 +1,15 @@ # statemachine This module implements a Finite State Machine (FSM), or State Machine in short. -The FSM is composed of states and transitions between them. These need to be specified by the client. +The FSM is composed of states and transitions between them. +These need to be specified by the client. ## Usage Have a look at `statemachine_test.v` for usage examples. -On each `run()`, the possible transitions from the current state are evaluated. If the condition (specified by the client as a handler function) is true, then: +On each `run()`, the possible transitions from the current state are evaluated. + +If the condition (specified by the client as a handler function) is true, then: * the client-specifid `on_exit()` handler from the current state is called. * the client-specifid `on_entry()` handler of the new state is called. * the client-specifid `on_run()` handler of the new state is called.