use type coercion in doc

This commit is contained in:
dowwie 2019-04-14 17:47:30 -04:00
parent 774a9d1e8b
commit 5e4ddc9995
1 changed files with 1 additions and 1 deletions

View File

@ -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