propagated result of set_current_exercise_ind

This commit is contained in:
Meredith Doan 2026-02-10 16:25:44 -07:00
parent 34830b3c9b
commit 2e1b42a87f

View File

@ -181,7 +181,7 @@ fn main() -> Result<ExitCode> {
for ind in 0..n_exercises { for ind in 0..n_exercises {
app_state.reset_exercise_by_ind(ind)?; app_state.reset_exercise_by_ind(ind)?;
} }
app_state.set_current_exercise_ind(0); app_state.set_current_exercise_ind(0)?;
println!("All exercises have been reset"); println!("All exercises have been reset");
} else { } else {
app_state.set_current_exercise_by_name(&name)?; app_state.set_current_exercise_by_name(&name)?;