mirror of https://github.com/fafhrd91/actix-web
Fix doc example
This commit is contained in:
parent
e081f6736e
commit
9c3ea3480a
|
@ -107,8 +107,8 @@ impl ServiceRequest {
|
||||||
/// use actix_web::web::Path;
|
/// use actix_web::web::Path;
|
||||||
/// use actix_web::Error;
|
/// use actix_web::Error;
|
||||||
///
|
///
|
||||||
/// fn f(service_request: ServiceRequest) -> Result<ServiceResponse, Error> {
|
/// async fn f(mut service_request: ServiceRequest) -> Result<ServiceResponse, Error> {
|
||||||
/// let path: Path<(String, u32)> = service_request.extract()?;
|
/// let path = service_request.extract::<Path<(String, u32)>>().await?;
|
||||||
/// // [...]
|
/// // [...]
|
||||||
/// # todo!()
|
/// # todo!()
|
||||||
/// }
|
/// }
|
||||||
|
|
Loading…
Reference in New Issue