From 08f0337acbce4746813b664b98ae29fcf4941780 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Tue, 4 Jan 2022 16:59:20 +0000 Subject: [PATCH] fix doc test --- src/guard.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)]