mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 15:51:06 +01:00
docs(settings): fix doc test
This commit is contained in:
parent
50d2fee4e2
commit
275675e1c2
@ -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))?
|
||||
|
Loading…
Reference in New Issue
Block a user