Fix typo in 0.5 upgrade guide.

This commit is contained in:
Kenneth Allen 2022-05-23 15:48:45 +10:00 committed by Sergio Benitez
parent 907af10ea4
commit 1587c501f3
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ use rocket::tokio::task;
use rocket::response::Debug;
#[get("/")]
async fn exepensive() -> Result<(), Debug<task::JoinError>> {
async fn expensive() -> Result<(), Debug<task::JoinError>> {
let result = task::spawn_blocking(move || {
// perform the computation
}).await?;