fix doctest

This commit is contained in:
Rob Ede 2021-12-14 19:04:00 +00:00
parent 27af320f27
commit 1d7ec0bcd9
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ type ErrorHandler<B> = dyn Fn(ServiceResponse<B>) -> Result<ErrorHandlerResponse
/// res.response_mut() /// res.response_mut()
/// .headers_mut() /// .headers_mut()
/// .insert(header::CONTENT_TYPE, header::HeaderValue::from_static("Error")); /// .insert(header::CONTENT_TYPE, header::HeaderValue::from_static("Error"));
/// Ok(ErrorHandlerResponse::Response(res)) ///
/// Ok(ErrorHandlerResponse::Response(res.map_into_left_body()))
/// } /// }
/// ///
/// let app = App::new() /// let app = App::new()