mirror of
https://github.com/actix/actix-extras.git
synced 2025-03-31 01:06:20 +02:00
fix Scope::handler doc test
This commit is contained in:
parent
968c81e267
commit
b7a73e0a4f
@ -304,7 +304,7 @@ impl<S: 'static> Scope<S> {
|
|||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// let app = App::new().scope("/scope-prefix", |scope| {
|
/// 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::GET => HttpResponse::Ok(),
|
||||||
/// http::Method::POST => HttpResponse::MethodNotAllowed(),
|
/// http::Method::POST => HttpResponse::MethodNotAllowed(),
|
||||||
/// _ => HttpResponse::NotFound(),
|
/// _ => HttpResponse::NotFound(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user