From f33ba139b460ee433c6738ab050534b951436d6d Mon Sep 17 00:00:00 2001 From: Nahor Date: Mon, 14 Oct 2024 10:13:30 -0700 Subject: [PATCH] Fix typos --- src/app_state.rs | 6 +++--- src/dev/check.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app_state.rs b/src/app_state.rs index 5f84d35d..4007fbc3 100644 --- a/src/app_state.rs +++ b/src/app_state.rs @@ -148,11 +148,11 @@ impl AppState { let mut done_exercises = hash_set_with_capacity(exercises.len()); - for done_exerise_name in lines { - if done_exerise_name.is_empty() { + for done_exercise_name in lines { + if done_exercise_name.is_empty() { break; } - done_exercises.insert(done_exerise_name); + done_exercises.insert(done_exercise_name); } for (ind, exercise) in exercises.iter_mut().enumerate() { diff --git a/src/dev/check.rs b/src/dev/check.rs index bd73ec8c..119fed5f 100644 --- a/src/dev/check.rs +++ b/src/dev/check.rs @@ -202,7 +202,7 @@ fn check_exercises_unsolved( for (exercise_name, handle) in handles { let Ok(result) = handle.join() else { - bail!("Panic while trying to run the exericse {exercise_name}"); + bail!("Panic while trying to run the exercise {exercise_name}"); }; match result { @@ -300,7 +300,7 @@ fn check_solutions( for (exercise_info, handle) in info_file.exercises.iter().zip(handles) { let Ok(check_result) = handle.join() else { bail!( - "Panic while trying to run the solution of the exericse {}", + "Panic while trying to run the solution of the exercise {}", exercise_info.name, ); };