summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-06-01 15:10:43 +0200
committermo8it <mo8it@proton.me>2024-06-01 15:10:43 +0200
commit8e9c99ae5bfd9212c7d2a2c78186ab82133e69c7 (patch)
tree62450d6596e83c36c1238e3896ff0f9b10decee1
parentc324ea10df1e8a19cd9fae9be0eda28d99b9f2e5 (diff)
Change condition order
-rw-r--r--src/dev/check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/check.rs b/src/dev/check.rs
index 7c35b4f..59352e9 100644
--- a/src/dev/check.rs
+++ b/src/dev/check.rs
@@ -14,7 +14,7 @@ use crate::{
// Find a char that isn't allowed in the exercise's `name` or `dir`.
fn forbidden_char(input: &str) -> Option<char> {
- input.chars().find(|c| *c != '_' && !c.is_alphanumeric())
+ input.chars().find(|c| !c.is_alphanumeric() && *c != '_')
}
// Check the info of all exercises and return their paths in a set.