diff --git a/axum/README.md b/axum/README.md index b5948864..24a3cd98 100644 --- a/axum/README.md +++ b/axum/README.md @@ -53,7 +53,7 @@ async fn main() { // `POST /users` goes to `create_user` .route("/users", post(create_user)); - // run our app with hyper + // run our app with hyper, listening globally on port 3000 let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(); axum::serve(listener, app).await.unwrap(); } diff --git a/axum/src/lib.rs b/axum/src/lib.rs index 18f0b032..6fbb45b4 100644 --- a/axum/src/lib.rs +++ b/axum/src/lib.rs @@ -53,7 +53,7 @@ //! // build our application with a single route //! let app = Router::new().route("/", get(|| async { "Hello, World!" })); //! -//! // run it on localhost:3000 +//! // run our app with hyper, listening globally on port 3000 //! let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(); //! axum::serve(listener, app).await.unwrap(); //! }