mirror of
https://github.com/SinTan1729/unscrambler-rust.git
synced 2025-04-19 09:20:02 -05:00
bug fixing
This commit is contained in:
parent
54151e9cd8
commit
581abc9fc6
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue