1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-11 09:49:29 +00:00

fix the example in README.md (#739)

This commit is contained in:
joekyo 2019-03-29 11:03:17 +08:00 committed by Nikolay Kim
parent 9710e9b01f
commit c4a8bbe47b

View file

@ -37,9 +37,9 @@ fn main() -> std::io::Result<()> {
HttpServer::new(
|| App::new().service(
web::resource("/{id}/{name}/index.html")
.route(web::get().to(index)))
.route(web::get().to(index))))
.bind("127.0.0.1:8080")?
.run();
.run()
}
```