diff --git a/actix-limitation/README.md b/actix-limitation/README.md index 41fb93d32..007ef4634 100644 --- a/actix-limitation/README.md +++ b/actix-limitation/README.md @@ -13,7 +13,7 @@ ```toml [dependencies] actix-web = "4" -actix-limitation = "0.1.4" +actix-limitation = "0.3" ``` ```rust diff --git a/actix-limitation/src/lib.rs b/actix-limitation/src/lib.rs index 35da4e423..7f160a309 100644 --- a/actix-limitation/src/lib.rs +++ b/actix-limitation/src/lib.rs @@ -3,7 +3,7 @@ //! ```toml //! [dependencies] //! actix-web = "4" -//! actix-limitation = "0.1.4" +#![doc = concat!("actix-limitation = \"", env!("CARGO_PKG_VERSION_MAJOR"), ".", env!("CARGO_PKG_VERSION_MINOR"),"\"")] //! ``` //! //! ```no_run @@ -34,7 +34,7 @@ //! .app_data(limiter.clone()) //! .service(index) //! }) -//! .bind("127.0.0.1:8080")? +//! .bind(("127.0.0.1", 8080))? //! .run() //! .await //! }