Finite state machines in rust; bendns fork to add types.
fix typos in the documentation and opt out doctest
Yevhenii Babichenko 2019-04-29
parent c34b1a4 · commit ab58957
-rw-r--r--README.md2
-rw-r--r--rust_fsm/src/lib.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index e07a85c..b8b75bc 100644
--- a/README.md
+++ b/README.md
@@ -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