diff --git a/src/main.rs b/src/main.rs index 031aa28..d23f0c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {