From 275675e1c2d78d26051d24c6aef001717758759e Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 7 Aug 2024 01:37:53 +0100 Subject: [PATCH] docs(settings): fix doc test --- actix-settings/src/settings/tls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-settings/src/settings/tls.rs b/actix-settings/src/settings/tls.rs index 34829d7d4..7ee954e6c 100644 --- a/actix-settings/src/settings/tls.rs +++ b/actix-settings/src/settings/tls.rs @@ -37,7 +37,7 @@ impl Tls { /// let settings = Settings::from_default_template(); /// /// HttpServer::new(|| { - /// App::new().service(web::to(|| { "Hello, World!" })) + /// App::new().route("/", web::to(|| async { "Hello, World!" })) /// }) /// .try_apply_settings(&settings)? /// .bind(("127.0.0.1", 8080))?