diff --git a/Cargo.toml b/Cargo.toml index 904f4ae..1c0665d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "btnify" -version = "2.0.1" +version = "2.0.2" edition = "2021" description = "Hosts a website with buttons for you so you can focus on what matters!" license = "MIT" diff --git a/README.md b/README.md index 3578149..85c8131 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Run `cargo add btnify` or -Add `btnify = "2.0.0"` to your `Cargo.toml` +Add `btnify = "2.0.2"` to your `Cargo.toml` ## How to use @@ -83,7 +83,7 @@ use btnify::ShutdownConfig; use btnify::button::{Button, ButtonResponse}; struct Counter { - // must use Mutex for interior mutability + // must use Mutex for interior mutability and thread-safety count: Mutex, end_server_tx: Mutex>>, } diff --git a/src/lib.rs b/src/lib.rs index 66bbcc3..06cb187 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,7 +45,7 @@ //! use btnify::button::{Button, ButtonResponse}; //! //! struct Counter { -//! // must use Mutex for interior mutability +//! // must use Mutex for interior mutability and thread-safety //! count: Mutex, //! end_server_tx: Mutex>>, //! }