reset exercise index to 0 after reset

This commit is contained in:
Meredith Doan 2026-02-10 16:20:16 -07:00
parent 8e5b932bcf
commit 0d38060b1b

View File

@ -180,6 +180,7 @@ fn main() -> Result<ExitCode> {
let n_exercises = app_state.exercises().len();
for ind in 0..n_exercises {
app_state.reset_exercise_by_ind(ind)?;
app_state.set_current_exercise_ind(0);
}
println!("All exercises have been reset");
} else {