Don't ignore 'launch()' result in guide overview.

This commit is contained in:
Sergio Benitez 2021-06-30 10:19:36 -07:00
parent f0b133023b
commit dc1b729f29
1 changed files with 2 additions and 2 deletions

View File

@ -209,11 +209,11 @@ runtime but unlike `#[launch]`, allows _you_ to start the server:
# }
#[rocket::main]
async fn main() {
async fn main() -> Result<(), rocket::Error> {
rocket::build()
.mount("/hello", routes![world])
.launch()
.await;
.await
}
```