We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50d2fee commit 275675eCopy full SHA for 275675e
actix-settings/src/settings/tls.rs
@@ -37,7 +37,7 @@ impl Tls {
37
/// let settings = Settings::from_default_template();
38
///
39
/// HttpServer::new(|| {
40
- /// App::new().service(web::to(|| { "Hello, World!" }))
+ /// App::new().route("/", web::to(|| async { "Hello, World!" }))
41
/// })
42
/// .try_apply_settings(&settings)?
43
/// .bind(("127.0.0.1", 8080))?
0 commit comments