Skip to content

Commit

Permalink
update readme and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
NotThatRqd committed Nov 19, 2023
1 parent 617bd51 commit 3634248
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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<i32>,
end_server_tx: Mutex<Option<oneshot::Sender<()>>>,
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<i32>,
//! end_server_tx: Mutex<Option<oneshot::Sender<()>>>,
//! }
Expand Down

0 comments on commit 3634248

Please sign in to comment.