aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-04-20 15:25:15 +0800
committer魏曹先生 <1992414357@qq.com>2026-04-20 15:25:15 +0800
commit1032b3be6e934b52b8b1b9bc7b3f031625605e18 (patch)
tree4c3337e8f1bf9af748db336013d0e8a9c9d52f7a
parent7d0cb15f58a0bec5c9fa29757ee5007c0a78f287 (diff)
Remove async from main example in README
-rw-r--r--mingling/README.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/mingling/README.md b/mingling/README.md
index aff26ac..f246aa5 100644
--- a/mingling/README.md
+++ b/mingling/README.md
@@ -13,13 +13,12 @@ The example below shows how to use `Mingling` to create a simple command-line pr
```rust
use mingling::macros::{dispatcher, gen_program, r_println, renderer};
-#[tokio::main]
-async fn main() {
+fn main() {
let mut program = ThisProgram::new();
program.with_dispatcher(HelloCommand);
// Execute
- program.exec().await;
+ program.exec();
}
// Define command: "<bin> hello"