Skip to content

Commit

Permalink
docs(settings): fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Aug 7, 2024
1 parent 50d2fee commit 275675e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actix-settings/src/settings/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))?
Expand Down

0 comments on commit 275675e

Please sign in to comment.