Skip to content

Commit

Permalink
fix: doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
vidhanio committed Nov 27, 2023
1 parent f0796b2 commit 8d3427a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/content/web-frameworks.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,8 @@ async fn main() {
let app = Router::new().route("/", get(hello_world));
// run it with hyper on localhost:3000
axum::Server::bind(&"0.0.0.0:3000".parse().unwrap())
.serve(app.into_make_service())
.await
.unwrap();
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
axum::serve(listener, app.into_make_service()).await.unwrap();
}
```

0 comments on commit 8d3427a

Please sign in to comment.