From 64c0dae51b40ffb8d3e63f3e9a298a93db2d09c2 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 17 Aug 2026 05:56:01 +0800 Subject: fix: update README StateNext example syntax --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 20947f2..379c4dd 100644 --- a/README.md +++ b/README.md @@ -39,13 +39,14 @@ Mingling abstracts the behavior of a program's lifecycle into three phases: **Di ```rust dispatcher!("current", EntryCurrent); -#[derive(Grouped, Wrap, Default)] -pub struct StateNext(()); + +#[derive(Grouped)] +pub struct StateNext; #[chain] fn handle_current(_: EntryCurrent) -> StateNext { // 1. The first phase outputs the StateNext value - StateNext::default() // ^^^^^^^^^ + StateNext // ^^^^^^^^^ } // | // | // 2. The second phase takes StateNext as input -- cgit