mirror of https://github.com/fafhrd91/actix-web
typo in doc
This commit is contained in:
parent
67e9c72039
commit
d99629bdf2
|
@ -306,7 +306,9 @@ impl WebsocketsRequest {
|
|||
}
|
||||
} else {
|
||||
log::trace!("Invalid connection header: {:?}", conn);
|
||||
return Err(WsClientError::InvalidConnectionHeader(conn.clone()));
|
||||
return Err(WsClientError::InvalidConnectionHeader(
|
||||
conn.clone(),
|
||||
));
|
||||
}
|
||||
} else {
|
||||
log::trace!("Missing connection header");
|
||||
|
|
|
@ -393,7 +393,7 @@ impl TestRequest {
|
|||
/// .set_payload(payload)
|
||||
/// .to_request();
|
||||
///
|
||||
/// let result = read_response_json<_, _, _, Person>(&mut app, req);
|
||||
/// let result = test::read_response_json<_, _, _, Person>(&mut app, req);
|
||||
/// }
|
||||
/// ```
|
||||
pub fn read_response_json<S, R, B, T>(app: &mut S, req: R) -> T
|
||||
|
|
Loading…
Reference in New Issue