summaryrefslogtreecommitdiff
path: root/src/dev/check.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-17 19:16:48 +0200
committermo8it <mo8it@proton.me>2024-04-17 19:16:48 +0200
commitd83cc69afecf59fba184755591d73c7208988574 (patch)
treeace423f8f2dc12a4ad6bfd935dcb0aa641ca74e7 /src/dev/check.rs
parentd6bb27ec2060863c38794b7c2511ca7399e29172 (diff)
Trim before checking if the hint is empty
Diffstat (limited to 'src/dev/check.rs')
-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 3cb5345..4688e04 100644
--- a/src/dev/check.rs
+++ b/src/dev/check.rs
@@ -38,7 +38,7 @@ fn check_info_file_exercises(info_file: &InfoFile) -> Result<hashbrown::HashSet<
}
}
- if exercise_info.hint.is_empty() {
+ if exercise_info.hint.trim().is_empty() {
bail!("The exercise `{}` has an empty hint. Please provide a hint or at least tell the user why a hint isn't needed for this exercise", exercise_info.name);
}