From 5a35628728cc89b4eba6360e3674a16d98d94dc3 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 20 Apr 2026 15:26:17 +0800 Subject: Update example to use synchronous program execution --- docs/pages/1-get-started.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/pages/1-get-started.md b/docs/pages/1-get-started.md index b05e72b..d3358f4 100644 --- a/docs/pages/1-get-started.md +++ b/docs/pages/1-get-started.md @@ -16,8 +16,7 @@ mingling = "0.1.6" ```rust use mingling::macros::{dispatcher, gen_program, r_println, renderer}; -#[tokio::main] -async fn main() { +fn main() { // Create ThisProgram let mut program = ThisProgram::new(); @@ -25,7 +24,7 @@ async fn main() { program.with_dispatcher(HelloCommand); // Run the program - program.exec().await; + program.exec(); } // Define the dispatcher `HelloCommand`, which routes the "hello" subcommand to `HelloEntry` -- cgit