Skip to content

Commit

Permalink
Fix doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker committed Feb 13, 2022
1 parent e081f67 commit 9c3ea34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actix-web/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ impl ServiceRequest {
/// use actix_web::web::Path;
/// use actix_web::Error;
///
/// fn f(service_request: ServiceRequest) -> Result<ServiceResponse, Error> {
/// let path: Path<(String, u32)> = service_request.extract()?;
/// async fn f(mut service_request: ServiceRequest) -> Result<ServiceResponse, Error> {
/// let path = service_request.extract::<Path<(String, u32)>>().await?;
/// // [...]
/// # todo!()
/// }
Expand Down

0 comments on commit 9c3ea34

Please sign in to comment.