aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-04-19 00:49:09 +0800
committer魏曹先生 <1992414357@qq.com>2026-04-19 00:49:09 +0800
commit9411f2570cbd494aebefa2b97b6b5a1a5e68bb27 (patch)
tree7c419bd16cc1bc38eb0df04b21fbbfeb0b8c6548 /README.md
parentf26cd7da74e9b65facb4dc2f16c21683334e0aee (diff)
Remove async runtime requirement from examples
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/README.md b/README.md
index 628693e..2ef52f4 100644
--- a/README.md
+++ b/README.md
@@ -53,13 +53,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"