diff --git a/src/middleware/errhandlers.rs b/src/middleware/errhandlers.rs index 2906e39e..db3c70f3 100644 --- a/src/middleware/errhandlers.rs +++ b/src/middleware/errhandlers.rs @@ -19,9 +19,8 @@ type ErrorHandler = Fn(&mut HttpRequest, HttpResponse) -> Result /// /// ```rust /// # extern crate actix_web; -/// use actix_web::{ -/// App, HttpRequest, HttpResponse, Result, -/// http, middleware::Response, middleware::ErrorHandlers}; +/// use actix_web::{http, App, HttpRequest, HttpResponse, Result}; +/// use actix_web::middleware::{Response, ErrorHandlers}; /// /// fn render_500(_: &mut HttpRequest, resp: HttpResponse) -> Result { /// let mut builder = resp.into_builder();