mirror of
https://github.com/actix/actix-web.git
synced 2025-01-02 21:38:46 +00:00
fix doc example
This commit is contained in:
parent
79818560b2
commit
30a36bed9d
1 changed files with 2 additions and 2 deletions
|
@ -325,7 +325,7 @@ impl Default for FormConfig {
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// let app = App::new().resource(
|
/// let app = App::new().resource(
|
||||||
/// "/index.html", |r|
|
/// "/index.html", |r|
|
||||||
/// r.method(http::Method::GET).with(index))
|
/// r.method(http::Method::GET).with(index));
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
impl<S: 'static> FromRequest<S> for Bytes {
|
impl<S: 'static> FromRequest<S> for Bytes {
|
||||||
|
@ -372,7 +372,7 @@ impl<S: 'static> FromRequest<S> for Bytes {
|
||||||
/// r.method(http::Method::GET)
|
/// r.method(http::Method::GET)
|
||||||
/// .with(index) // <- register handler with extractor params
|
/// .with(index) // <- register handler with extractor params
|
||||||
/// .limit(4096); // <- limit size of the payload
|
/// .limit(4096); // <- limit size of the payload
|
||||||
/// })
|
/// });
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
impl<S: 'static> FromRequest<S> for String {
|
impl<S: 'static> FromRequest<S> for String {
|
||||||
|
|
Loading…
Reference in a new issue