From 51e4dcf3b36b1399b72174c82101b8ad4492d185 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sun, 24 Mar 2019 17:13:17 -0700 Subject: [PATCH] update test doc string --- src/test.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test.rs b/src/test.rs index 7e79659a..c5936ea3 100644 --- a/src/test.rs +++ b/src/test.rs @@ -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