aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-24 17:06:54 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-24 17:06:54 +0800
commit60e70f5320b2abdb38a2349c18e5bffcfea37ca7 (patch)
tree3402af0a2822255c1c3f9c77affe6da81c9d1279 /docs
parent11adad7db1b6202d5366527902c3f0a9fb90654f (diff)
Add implicit dispatcher macro with auto-derived names
Diffstat (limited to 'docs')
-rw-r--r--docs/res/changlog_examples/feat_program_res.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/res/changlog_examples/feat_program_res.rs b/docs/res/changlog_examples/feat_program_res.rs
index b3533f1..11a1471 100644
--- a/docs/res/changlog_examples/feat_program_res.rs
+++ b/docs/res/changlog_examples/feat_program_res.rs
@@ -20,12 +20,12 @@ fn main() {
program.exec();
}
-dispatcher!("modify", ResModifyCommand => ResModifyEntry);
+dispatcher!("modify", CMDModify => EntryModify);
pack!(DisplayGlobal = ());
#[chain]
-fn modify(prev: ResModifyEntry) {
+fn modify(prev: EntryModify) {
let (name, age) = Picker::<()>::new(prev.inner)
.pick::<String>("--name")
.pick::<i32>("--age")