mirror of
https://github.com/actix/actix-web.git
synced 2024-12-22 08:07:18 +00:00
Fix read_body
doc
This commit is contained in:
parent
9f196fe5a5
commit
d602a7e386
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ where
|
||||||
/// .to_request();
|
/// .to_request();
|
||||||
///
|
///
|
||||||
/// let resp = test::call_service(&mut app, req).await;
|
/// let resp = test::call_service(&mut app, req).await;
|
||||||
/// let result = test::read_body(resp);
|
/// let result = test::read_body(resp).await;
|
||||||
/// assert_eq!(result, Bytes::from_static(b"welcome!"));
|
/// assert_eq!(result, Bytes::from_static(b"welcome!"));
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Reference in a new issue