1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-21 15:46:48 +00:00

fix doc example

This commit is contained in:
Nikolay Kim 2018-04-16 09:50:37 -07:00
parent 79818560b2
commit 30a36bed9d

View file

@ -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 {
@ -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 {