aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 4 insertions, 3 deletions
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