From e4d2217d6e48283a39eb3fe84ffd19cc97edb43a Mon Sep 17 00:00:00 2001 From: Coin de Gamma Date: Sat, 21 Sep 2024 07:26:18 +0000 Subject: [PATCH] prints++ --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index f5921c2..3b655e8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,14 +87,14 @@ impl MPS { } fn prompt_new_password() -> io::Result { - print!("Enter passphrase for storage: "); + print!("Enter passphrase: "); io::stdout().flush()?; let ps = rpassword::read_password()?; if ps.len() < 8 { - return Err(io::Error::new(io::ErrorKind::InvalidInput, "Passphrase must be longet that 8 letters")); + return Err(io::Error::new(io::ErrorKind::InvalidInput, "Passphrase must be longer that 8 letters")); } if ps.len() > 32 { - return Err(io::Error::new(io::ErrorKind::InvalidInput, "Passphrase must be shorted that 32 letters")); + return Err(io::Error::new(io::ErrorKind::InvalidInput, "Passphrase must not be longer than 32 letters")); } print!("Reenter passphrase: "); io::stdout().flush()?;