Update `call_service` documentation

This commit is contained in:
Yuki Okushi 2020-01-22 06:56:15 +09:00
parent 3a5b62b550
commit 28c6b5f4b2
1 changed files with 3 additions and 4 deletions

View File

@ -95,11 +95,10 @@ where
/// Calls service and waits for response future completion. /// Calls service and waits for response future completion.
/// ///
/// ```rust /// ```rust
/// use actix_web::{test, App, HttpResponse, http::StatusCode}; /// use actix_web::{test, web, App, HttpResponse, http::StatusCode};
/// use actix_service::Service;
/// ///
/// #[test] /// #[actix_rt::test]
/// fn test_response() { /// async fn test_response() {
/// let mut app = test::init_service( /// let mut app = test::init_service(
/// App::new() /// App::new()
/// .service(web::resource("/test").to(|| async { /// .service(web::resource("/test").to(|| async {