summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev')
-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.