This commit is contained in:
Remo Senekowitsch authored and GitHub committed 2024-10-02 15:20:17 +02:00
1 parent a0537f8c51
commit a899ecec96
1 file changed
+1 -1
+1 -1
View File
@@ -107,7 +107,7 @@ asynchronous programming in Rust.
The entrypoint of your executable, the `main` function, must be a synchronous function. The entrypoint of your executable, the `main` function, must be a synchronous function.
That's where you're supposed to set up and launch your chosen async runtime. That's where you're supposed to set up and launch your chosen async runtime.
Most runtimes provides a macro to make this easier. For `tokio`, it's `tokio::main`: Most runtimes provide a macro to make this easier. For `tokio`, it's `tokio::main`:
```rust ```rust
#[tokio::main] #[tokio::main]