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