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;