summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-07-02 14:28:08 +0200
committermo8it <mo8it@proton.me>2024-07-02 14:28:08 +0200
commit6cf75d569bd0dd33a041e37c59cb75d28664bd7b (patch)
tree8cc7805f33006d11e5ff57604c2cb9b666249574 /src/dev
parent67ce9b9e56b1d9e8b8b50b9b48c7eebd80b9ec8f (diff)
Fix typos
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/check.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dev/check.rs b/src/dev/check.rs
index 336360b..5074c13 100644
--- a/src/dev/check.rs
+++ b/src/dev/check.rs
@@ -174,7 +174,7 @@ fn check_exercises(info_file: &InfoFile) -> Result<()> {
fn check_solutions(require_solutions: bool, info_file: &InfoFile) -> Result<()> {
let target_dir = parse_target_dir()?;
let paths = Mutex::new(hashbrown::HashSet::with_capacity(info_file.exercises.len()));
- let error_occured = AtomicBool::new(false);
+ let error_occurred = AtomicBool::new(false);
println!("Running all solutions. This may take a while...\n");
thread::scope(|s| {
@@ -188,7 +188,7 @@ fn check_solutions(require_solutions: bool, info_file: &InfoFile) -> Result<()>
.unwrap();
stderr.write_all(exercise_info.name.as_bytes()).unwrap();
stderr.write_all(SEPARATOR).unwrap();
- error_occured.store(true, atomic::Ordering::Relaxed);
+ error_occurred.store(true, atomic::Ordering::Relaxed);
};
let path = exercise_info.sol_path();
@@ -213,7 +213,7 @@ fn check_solutions(require_solutions: bool, info_file: &InfoFile) -> Result<()>
}
});
- if error_occured.load(atomic::Ordering::Relaxed) {
+ if error_occurred.load(atomic::Ordering::Relaxed) {
bail!("At least one solution failed. See the output above.");
}