mirror of
https://github.com/actix/actix-web.git
synced 2024-12-30 12:00:38 +00:00
update test doc string
This commit is contained in:
parent
e37e81af0b
commit
51e4dcf3b3
1 changed files with 3 additions and 3 deletions
|
@ -80,13 +80,13 @@ pub fn default_service(
|
||||||
/// service.
|
/// service.
|
||||||
///
|
///
|
||||||
/// ```rust,ignore
|
/// ```rust,ignore
|
||||||
/// use actix_web::{test, App, HttpResponse, http::StatusCode};
|
|
||||||
/// use actix_service::Service;
|
/// use actix_service::Service;
|
||||||
|
/// use actix_web::{test, web, App, HttpResponse, http::StatusCode};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// let mut app = test::init_service(
|
/// let mut app = test::init_service(
|
||||||
/// App::new()
|
/// App::new()
|
||||||
/// .resource("/test", |r| r.to(|| HttpResponse::Ok()))
|
/// .service(web::resource("/test").to(|| HttpResponse::Ok()))
|
||||||
/// );
|
/// );
|
||||||
///
|
///
|
||||||
/// // Create request object
|
/// // Create request object
|
||||||
|
@ -123,7 +123,7 @@ where
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// let mut app = test::init_service(
|
/// let mut app = test::init_service(
|
||||||
/// App::new()
|
/// App::new()
|
||||||
/// .resource("/test", |r| r.to(|| HttpResponse::Ok()))
|
/// .service(web::resource("/test").to(|| HttpResponse::Ok()))
|
||||||
/// );
|
/// );
|
||||||
///
|
///
|
||||||
/// // Create request object
|
/// // Create request object
|
||||||
|
|
Loading…
Reference in a new issue