1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 23:51:06 +01:00

docs(settings): fix doc test

This commit is contained in:
Rob Ede 2024-08-07 01:37:53 +01:00
parent 50d2fee4e2
commit 275675e1c2
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -37,7 +37,7 @@ impl Tls {
/// let settings = Settings::from_default_template(); /// let settings = Settings::from_default_template();
/// ///
/// HttpServer::new(|| { /// HttpServer::new(|| {
/// App::new().service(web::to(|| { "Hello, World!" })) /// App::new().route("/", web::to(|| async { "Hello, World!" }))
/// }) /// })
/// .try_apply_settings(&settings)? /// .try_apply_settings(&settings)?
/// .bind(("127.0.0.1", 8080))? /// .bind(("127.0.0.1", 8080))?