From b9da09ddf0afda189a8be05fb530f65cffb383a2 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 11 Dec 2017 19:17:37 -0800 Subject: [PATCH] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } ```