diff --git a/src/guard.rs b/src/guard.rs index 77c4600c..c29053cc 100644 --- a/src/guard.rs +++ b/src/guard.rs @@ -16,7 +16,7 @@ use actix_web::{ /// web::resource("/images") /// .guard(Acceptable::new(mime::IMAGE_STAR)) /// .default_service(web::to(|| { -/// HttpResponse::Ok().finish("only called when images responses are acceptable") +/// HttpResponse::Ok().body("only called when images responses are acceptable") /// })); /// ``` #[derive(Debug, Clone)]