Skip to content

Commit

Permalink
fix doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Apr 16, 2018
1 parent 7981856 commit 30a36be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<S: 'static> FromRequest<S> for Bytes {
Expand Down Expand Up @@ -372,7 +372,7 @@ impl<S: 'static> FromRequest<S> for Bytes {
/// r.method(http::Method::GET)
/// .with(index) // <- register handler with extractor params
/// .limit(4096); // <- limit size of the payload
/// })
/// });
/// }
/// ```
impl<S: 'static> FromRequest<S> for String {
Expand Down

0 comments on commit 30a36be

Please sign in to comment.