File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,14 @@ fn header_vec_to_header_array(byte_vec: Vec<u8>) -> [u8;24]{
92
92
. unwrap_or_else ( |v : Vec < u8 > | panic ! ( "Expected a Vec of length {} but it was {}" , 24 , v. len( ) ) )
93
93
}
94
94
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 {
96
96
let mut password;
97
97
loop {
98
98
password = rpassword:: prompt_password_stdout ( message) . unwrap ( ) ;
99
- if password. len ( ) >= minimum_password_legth {
99
+ if password. len ( ) >= minimum_password_length {
100
100
break ;
101
101
}
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 ) ;
103
103
}
104
104
password
105
105
}
You can’t perform that action at this time.
0 commit comments