mirror of https://github.com/fafhrd91/actix-web
use type coercion in doc
This commit is contained in:
parent
774a9d1e8b
commit
5e4ddc9995
|
@ -393,7 +393,7 @@ impl TestRequest {
|
|||
/// .set_payload(payload)
|
||||
/// .to_request();
|
||||
///
|
||||
/// let result = test::read_response_json::<_, _, _, Person>(&mut app, req);
|
||||
/// let result: Person = test::read_response_json(&mut app, req);
|
||||
/// }
|
||||
/// ```
|
||||
pub fn read_response_json<S, R, B, T>(app: &mut S, req: R) -> T
|
||||
|
|
Loading…
Reference in New Issue