mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
Replace hyper::Server with axum::Server in docs (#118)
* Replace `hyper::Server` with `axum::Server` in docs * Change readme as well
This commit is contained in:
@@ -28,7 +28,7 @@ async fn main() {
|
||||
|
||||
println!("Playground: http://localhost:3000");
|
||||
|
||||
hyper::Server::bind(&"0.0.0.0:3000".parse().unwrap())
|
||||
axum::Server::bind(&"0.0.0.0:3000".parse().unwrap())
|
||||
.serve(app.into_make_service())
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user