1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-30 18:44:35 +01:00

Merge pull request #1416 from JohnTitor/fix-doc

Fix `read_body` doc
This commit is contained in:
Yuki Okushi 2020-03-13 07:06:57 +09:00 committed by GitHub
commit 4875dfbec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!"));
/// } /// }
/// ``` /// ```