1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 00:21:08 +01:00

update test doc string

This commit is contained in:
Nikolay Kim 2019-03-24 17:13:17 -07:00
parent e37e81af0b
commit 51e4dcf3b3

View File

@ -80,13 +80,13 @@ pub fn default_service(
/// service.
///
/// ```rust,ignore
/// use actix_web::{test, App, HttpResponse, http::StatusCode};
/// use actix_service::Service;
/// use actix_web::{test, web, App, HttpResponse, http::StatusCode};
///
/// fn main() {
/// let mut app = test::init_service(
/// App::new()
/// .resource("/test", |r| r.to(|| HttpResponse::Ok()))
/// .service(web::resource("/test").to(|| HttpResponse::Ok()))
/// );
///
/// // Create request object
@ -123,7 +123,7 @@ where
/// fn main() {
/// let mut app = test::init_service(
/// App::new()
/// .resource("/test", |r| r.to(|| HttpResponse::Ok()))
/// .service(web::resource("/test").to(|| HttpResponse::Ok()))
/// );
///
/// // Create request object