1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-09-09 05:08:32 +00:00

fix guide

This commit is contained in:
Nikolay Kim 2018-03-21 21:02:57 -07:00
parent 04515e4697
commit 1107fdec9d

View file

@ -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!")))))
}
}
#