mirror of https://github.com/rwf2/Rocket.git
Fix typo in 0.5 upgrade guide.
This commit is contained in:
parent
907af10ea4
commit
1587c501f3
|
@ -298,7 +298,7 @@ use rocket::tokio::task;
|
||||||
use rocket::response::Debug;
|
use rocket::response::Debug;
|
||||||
|
|
||||||
#[get("/")]
|
#[get("/")]
|
||||||
async fn exepensive() -> Result<(), Debug<task::JoinError>> {
|
async fn expensive() -> Result<(), Debug<task::JoinError>> {
|
||||||
let result = task::spawn_blocking(move || {
|
let result = task::spawn_blocking(move || {
|
||||||
// perform the computation
|
// perform the computation
|
||||||
}).await?;
|
}).await?;
|
||||||
|
|
Loading…
Reference in New Issue