diff options
Diffstat (limited to 'docs/pages')
| -rw-r--r-- | docs/pages/1-get-started.md | 5 |
1 files 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` |
