Skip to content

Commit 665eeb3

Browse files
author
replydev
committed
Fix typo
1 parent dfba24a commit 665eeb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cryptograpy.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ fn header_vec_to_header_array(byte_vec: Vec<u8>) -> [u8;24]{
9292
.unwrap_or_else(|v: Vec<u8>| panic!("Expected a Vec of length {} but it was {}", 24, v.len()))
9393
}
9494

95-
pub fn prompt_for_passwords(message: &str,minimum_password_legth: usize) -> String{
95+
pub fn prompt_for_passwords(message: &str,minimum_password_length: usize) -> String{
9696
let mut password;
9797
loop{
9898
password = rpassword::prompt_password_stdout(message).unwrap();
99-
if password.len() >= minimum_password_legth {
99+
if password.len() >= minimum_password_length {
100100
break;
101101
}
102-
println!("Please insert a password with at least {} digits.",minimum_password_legth);
102+
println!("Please insert a password with at least {} digits.",minimum_password_length);
103103
}
104104
password
105105
}

0 commit comments

Comments
 (0)