From 771a7249772af9b313178ac5d42e324508d1d285 Mon Sep 17 00:00:00 2001 From: Maxim Deloof <20443795+mdeloof@users.noreply.github.com> Date: Tue, 7 Jan 2025 23:54:47 +0100 Subject: [PATCH] Update docs and examples --- README.md | 2 +- statig/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); //! } //! ``` //!