mirror of
https://github.com/actix/actix-web.git
synced 2024-11-03 15:39:50 +00:00
fix Scope::handler doc test
This commit is contained in:
parent
968c81e267
commit
b7a73e0a4f
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ impl<S: 'static> Scope<S> {
|
|||
///
|
||||
/// fn main() {
|
||||
/// let app = App::new().scope("/scope-prefix", |scope| {
|
||||
/// handler("/app", |req: &HttpRequest| match *req.method() {
|
||||
/// scope.handler("/app", |req: &HttpRequest| match *req.method() {
|
||||
/// http::Method::GET => HttpResponse::Ok(),
|
||||
/// http::Method::POST => HttpResponse::MethodNotAllowed(),
|
||||
/// _ => HttpResponse::NotFound(),
|
||||
|
|
Loading…
Reference in a new issue