Skip to content

Commit

Permalink
Fix password example too
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon01 committed Sep 6, 2023
1 parent 67aa633 commit 0a3a888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prompts/password.rs
Expand Up @@ -159,7 +159,7 @@ impl<'a> Password<'a> {
/// let password: String = Password::new()
/// .with_prompt("Enter password")
/// .validate_with(|input: &String| -> Result<(), &str> {
/// if input.len() > 8 {
/// if input.chars().count() > 8 {
/// Ok(())
/// } else {
/// Err("Password must be longer than 8")
Expand Down

0 comments on commit 0a3a888

Please sign in to comment.