diff --git a/Cargo.toml b/Cargo.toml index 9eff9a3..c81d682 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,4 +21,5 @@ members = [ "examples/no_macro/bench", "examples/no_macro/history", "examples/no_macro/calculator", + "examples/no_macro/generics", ] diff --git a/README.md b/README.md index 9fa99fd..bf141cd 100644 --- a/README.md +++ b/README.md @@ -478,7 +478,7 @@ impl IntoStateMachine for Blinky { type Context<'ctx> = Context; - const INITIAL: State = State::off(10); + const INITIAL: fn() -> State = || State::off(10); } ``` diff --git a/statig/src/lib.rs b/statig/src/lib.rs index 8223981..5823639 100644 --- a/statig/src/lib.rs +++ b/statig/src/lib.rs @@ -631,7 +631,7 @@ //! //! type Context<'ctx> = Context; //! -//! const INITIAL: State = State::off(10); +//! const INITIAL: fn() -> State = || State::off(10); //! } //! ``` //!