mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-02-11 20:29:18 +00:00
propagated result of set_current_exercise_ind
This commit is contained in:
parent
34830b3c9b
commit
2e1b42a87f
@ -181,7 +181,7 @@ fn main() -> Result<ExitCode> {
|
||||
for ind in 0..n_exercises {
|
||||
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");
|
||||
} else {
|
||||
app_state.set_current_exercise_by_name(&name)?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user