1
0
mirror of https://github.com/actix/actix-website synced 2025-06-28 16:00:36 +02:00

use tuple binding in hello world example

This commit is contained in:
Rob Ede
2020-12-26 19:17:37 +00:00
committed by GitHub
parent e2d5f99afb
commit eb53d18e05

View File

@ -59,7 +59,7 @@ async fn main() -> std::io::Result<()> {
.route("/", web::get().to(greet))
.route("/{name}", web::get().to(greet))
})
.bind("127.0.0.1:8080")?
.bind(("127.0.0.1", 8080))?
.run()
.await
}` "rust" "" }}