aboutsummaryrefslogtreecommitdiff
path: root/examples/example-dispatch-tree/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-19 22:48:23 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-19 22:48:23 +0800
commit39d66182f0290bacc10886c2659874bd9edc2d4b (patch)
tree7b0e9463575a8350cd5a61bd0d02c9bada892b7f /examples/example-dispatch-tree/src
parentbd4b09b06181093c95e865b04d4a9cdda7dd0728 (diff)
Add `empty_result!` macro and `REPL` resource, improve examples
Diffstat (limited to 'examples/example-dispatch-tree/src')
-rw-r--r--examples/example-dispatch-tree/src/main.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/example-dispatch-tree/src/main.rs b/examples/example-dispatch-tree/src/main.rs
index 90879e5..d8be32a 100644
--- a/examples/example-dispatch-tree/src/main.rs
+++ b/examples/example-dispatch-tree/src/main.rs
@@ -13,7 +13,7 @@
//!
//! ```bash
//! cargo expand --manifest-path examples/example-dispatch-tree/Cargo.toml > expanded.rs
-//! cat expanded.rs | grep dispatch_args_trie -A 264
+//! cat expanded.rs
//! ```
#![allow(unused_mut)]
@@ -23,11 +23,10 @@ use mingling::prelude::*;
fn main() {
let mut program = ThisProgram::new();
- // After enabling `dispatch_tree`, this method will no longer exist
+ // // After enabling `dispatch_tree`, this method will no longer exist
// program.with_dispatcher(CommandGreet);
//
- // The `CompletionDispatcher` automatically generated by `comp` will also be imported
- // automatically
+ // // The `CompletionDispatcher` automatically generated by `comp` will also be imported automatically
// program.with_dispatcher(CompletionDispatcher);
program.exec();