Finite state machines in rust; bendns fork to add types.
fix typos in the documentation and opt out doctest
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | rust_fsm/src/lib.rs | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -51,7 +51,7 @@ The DSL is parsed by the `state_machine` macro. Here is a little example. #[macro_use] extern crate rust_fsm_dsl; -use use rust_fsm::*; +use rust_fsm::*; state_machine! { CircuitBreaker(Closed) diff --git a/rust_fsm/src/lib.rs b/rust_fsm/src/lib.rs index e98e145..5443af6 100644 --- a/rust_fsm/src/lib.rs +++ b/rust_fsm/src/lib.rs @@ -45,11 +45,11 @@ //! //! The DSL is parsed by the `state_machine` macro. Here is a little example. //! -//! ```rust +//! ```rust,ignore //! #[macro_use] //! extern crate rust_fsm_dsl; //! -//! use use rust_fsm::*; +//! use rust_fsm::*; //! //! state_machine! { //! CircuitBreaker(Closed) @@ -73,7 +73,7 @@ //! //! This state machine can be used as follows: //! -//! ```rust +//! ```rust,ignore //! // Initialize the state machine. The state is `Closed` now. //! let mut machine: StateMachineWrapper<CircuitBreaker> = StateMachineWrapper::new(); //! // Consume the `Successful` input. No state transition is performed. Output |