mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 09:42:40 +01:00
fix doc strings
This commit is contained in:
parent
65b8197876
commit
bf9a90293f
@ -25,7 +25,7 @@ use httprequest::HttpRequest;
|
|||||||
/// # extern crate futures;
|
/// # extern crate futures;
|
||||||
/// use actix_web::{App, Path, Result, http};
|
/// 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
|
/// /// {username} - deserializes to a String
|
||||||
/// /// {count} - - deserializes to a u32
|
/// /// {count} - - deserializes to a u32
|
||||||
/// fn index(info: Path<(String, u32)>) -> Result<String> {
|
/// fn index(info: Path<(String, u32)>) -> Result<String> {
|
||||||
@ -34,7 +34,7 @@ use httprequest::HttpRequest;
|
|||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// let app = App::new().resource(
|
/// 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
|
/// |r| r.method(http::Method::GET).with(index)); // <- use `with` extractor
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
@ -195,9 +195,6 @@ where
|
|||||||
///
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
///
|
///
|
||||||
/// It is possible to extract path information to a specific type that
|
|
||||||
/// implements `Deserialize` trait from *serde*.
|
|
||||||
///
|
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # extern crate actix_web;
|
/// # extern crate actix_web;
|
||||||
/// #[macro_use] extern crate serde_derive;
|
/// #[macro_use] extern crate serde_derive;
|
||||||
|
Loading…
Reference in New Issue
Block a user