Skip to content

Commit

Permalink
fix scope doc example
Browse files Browse the repository at this point in the history
fixes #2843
  • Loading branch information
robjtede committed Aug 25, 2022
1 parent f220719 commit 056de32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actix-web/src/scope.rs
Expand Up @@ -40,7 +40,7 @@ type Guards = Vec<Box<dyn Guard>>;
/// use actix_web::{web, App, HttpResponse};
///
/// let app = App::new().service(
/// web::scope("/{project_id}/")
/// web::scope("/{project_id}")
/// .service(web::resource("/path1").to(|| async { "OK" }))
/// .service(web::resource("/path2").route(web::get().to(|| HttpResponse::Ok())))
/// .service(web::resource("/path3").route(web::head().to(HttpResponse::MethodNotAllowed)))
Expand Down

0 comments on commit 056de32

Please sign in to comment.