Scope: Switch to ServiceConfig in doc

This commit is contained in:
Denys Vitali 2019-06-02 20:00:28 +02:00
parent 53d254464a
commit e6bc864e05
No known key found for this signature in database
GPG Key ID: 8883F38950E654A4
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ impl Scope {
/// use actix_web::{web, middleware, App, HttpResponse};
///
/// // this function could be located in different module
/// fn config(cfg: &mut web::ScopeConfig) {
/// fn config(cfg: &mut web::ServiceConfig) {
/// cfg.service(web::resource("/test")
/// .route(web::get().to(|| HttpResponse::Ok()))
/// .route(web::head().to(|| HttpResponse::MethodNotAllowed()))