diff --git a/README.md b/README.md index 275036489..b06b8af0c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ fn index(req: HttpRequest) -> String { fn main() { HttpServer::new( Application::new() - .resource("/{name}", |r| r.method(Method::GET).f(index))) + .resource("/{name}", |r| r.f(index))) .serve::<_, ()>("127.0.0.1:8080"); } ```