diff --git a/README.md b/README.md index 876d95f6f..3cd0f3659 100644 --- a/README.md +++ b/README.md @@ -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() } ```