Skip to content

Commit

Permalink
fix(doc): test in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
VIAL Sébastien committed Nov 19, 2023
1 parent ecfc9b7 commit d352d10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@
//!
//! ```rust
//! use tag_password::Password;
//! use argon2::password_hash::SaltString;
//! use rand_core::OsRng;
//!
//! // Create a new plain text password
//! let salt = SaltString::generate(&mut OsRng);
//! let plain_password = Password::new("my_password");
//! // Hash the plain text password using Argon2
//! let hashed_password = plain_password
Expand Down

0 comments on commit d352d10

Please sign in to comment.