mirror of
https://github.com/actix/actix-web.git
synced 2025-03-11 05:51:08 +00:00
fix guide
This commit is contained in:
parent
04515e4697
commit
1107fdec9d
1 changed files with 1 additions and 2 deletions
|
@ -256,8 +256,7 @@ fn index(req: HttpRequest) -> Result<Box<Future<Item=HttpResponse, Error=Error>>
|
|||
Ok(Box::new(
|
||||
result(HttpResponse::Ok()
|
||||
.content_type("text/html")
|
||||
.body(format!("Hello!"))))
|
||||
.responder())
|
||||
.body(format!("Hello!")))))
|
||||
}
|
||||
}
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue