From 27035c94543b4d8cd7186fd1fe813262db78cc0e Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 29 Nov 2017 14:22:47 -0800 Subject: [PATCH] fixes --- guide/src/qs_2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/src/qs_2.md b/guide/src/qs_2.md index 1e6b227fa..4fbcf67fa 100644 --- a/guide/src/qs_2.md +++ b/guide/src/qs_2.md @@ -43,7 +43,7 @@ request handler with the application's `resource` on a particular *HTTP method* ```rust,ignore let app = Application::default("/") - .resource("/", |r| r.handler(Method::GET, index) + .resource("/", |r| r.get(index)) .finish() ``` @@ -73,7 +73,7 @@ fn main() { HttpServer::new( Application::default("/") - .resource("/", |r| r.handler(Method::GET, index))) + .resource("/", |r| r.get(index))) .serve::<_, ()>("127.0.0.1:8088").unwrap(); println!("Started http server: 127.0.0.1:8088");