1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-07-03 20:45:46 +00:00

fixed test::init_service api docs (missing await) (#1230)

This commit is contained in:
Darin 2019-12-20 21:47:18 -05:00 committed by Nikolay Kim
parent 0cb1b0642f
commit 3751a4018e

View file

@ -66,7 +66,7 @@ pub fn default_service(
/// let mut app = test::init_service(
/// App::new()
/// .service(web::resource("/test").to(|| async { HttpResponse::Ok() }))
/// );
/// ).await;
///
/// // Create request object
/// let req = test::TestRequest::with_uri("/test").to_request();