Skip to content

Commit 275675e

Browse files
committed
docs(settings): fix doc test
1 parent 50d2fee commit 275675e

File tree

1 file changed

+1
-1
lines changed
  • actix-settings/src/settings

1 file changed

+1
-1
lines changed

actix-settings/src/settings/tls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl Tls {
3737
/// let settings = Settings::from_default_template();
3838
///
3939
/// HttpServer::new(|| {
40-
/// App::new().service(web::to(|| { "Hello, World!" }))
40+
/// App::new().route("/", web::to(|| async { "Hello, World!" }))
4141
/// })
4242
/// .try_apply_settings(&settings)?
4343
/// .bind(("127.0.0.1", 8080))?

0 commit comments

Comments
 (0)