bug fixing

This commit is contained in:
Sayantan Santra 2022-06-06 23:53:59 -05:00
parent 54151e9cd8
commit 581abc9fc6

View file

@ -17,7 +17,7 @@ fn main() {
None => (), None => (),
_ => { _ => {
println!("Please enter only one scrambled word."); println!("Please enter only one scrambled word.");
std::process::exit(1); continue;
} }
} }
@ -36,7 +36,6 @@ fn main() {
// print output // print output
if indices.len() == 0 { if indices.len() == 0 {
println!("No matches found!"); println!("No matches found!");
std::process::exit(1);
} else { } else {
println!("The matched words are:"); println!("The matched words are:");
for index in indices { for index in indices {