From 39d66182f0290bacc10886c2659874bd9edc2d4b Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 19 May 2026 22:48:23 +0800 Subject: Add `empty_result!` macro and `REPL` resource, improve examples --- examples/example-dispatch-tree/src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples/example-dispatch-tree') 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(); -- cgit