From ee71d4cfa78b6e2a3c3381cc2e60d1fc6de578d0 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 11 Jul 2022 02:15:47 +0100 Subject: [PATCH] update readme --- actix-limitation/README.md | 2 +- actix-limitation/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 //! }