From bf9a90293fe4c725a532f6ad461bf6775932270a Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 17 Apr 2018 16:22:25 -0700 Subject: [PATCH] fix doc strings --- src/extractor.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/extractor.rs b/src/extractor.rs index 659aa01c9..1aef7ac53 100644 --- a/src/extractor.rs +++ b/src/extractor.rs @@ -25,7 +25,7 @@ use httprequest::HttpRequest; /// # extern crate futures; /// use actix_web::{App, Path, Result, http}; /// -/// /// extract path info from "/{username}/{count}/?index.html" url +/// /// extract path info from "/{username}/{count}/index.html" url /// /// {username} - deserializes to a String /// /// {count} - - deserializes to a u32 /// fn index(info: Path<(String, u32)>) -> Result { @@ -34,7 +34,7 @@ use httprequest::HttpRequest; /// /// fn main() { /// let app = App::new().resource( -/// "/{username}/{count}/?index.html", // <- define path parameters +/// "/{username}/{count}/index.html", // <- define path parameters /// |r| r.method(http::Method::GET).with(index)); // <- use `with` extractor /// } /// ``` @@ -195,9 +195,6 @@ where /// /// ## Example /// -/// It is possible to extract path information to a specific type that -/// implements `Deserialize` trait from *serde*. -/// /// ```rust /// # extern crate actix_web; /// #[macro_use] extern crate serde_derive;