Fix doc example

This commit is contained in:
Luca P 2022-02-13 10:51:16 +00:00
parent e081f6736e
commit 9c3ea3480a
1 changed files with 2 additions and 2 deletions

View File

@ -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!()
/// } /// }