From 30a36bed9d58e41bc7fc24d9ee0107ebb9bdab96 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 16 Apr 2018 09:50:37 -0700 Subject: [PATCH] fix doc example --- src/extractor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extractor.rs b/src/extractor.rs index 098b4d8f..659aa01c 100644 --- a/src/extractor.rs +++ b/src/extractor.rs @@ -325,7 +325,7 @@ impl Default for FormConfig { /// fn main() { /// let app = App::new().resource( /// "/index.html", |r| -/// r.method(http::Method::GET).with(index)) +/// r.method(http::Method::GET).with(index)); /// } /// ``` impl FromRequest for Bytes { @@ -372,7 +372,7 @@ impl FromRequest for Bytes { /// r.method(http::Method::GET) /// .with(index) // <- register handler with extractor params /// .limit(4096); // <- limit size of the payload -/// }) +/// }); /// } /// ``` impl FromRequest for String {