mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-02-12 04:39:19 +00:00
reset exercise index to 0 after reset
This commit is contained in:
parent
8e5b932bcf
commit
0d38060b1b
@ -180,6 +180,7 @@ fn main() -> Result<ExitCode> {
|
|||||||
let n_exercises = app_state.exercises().len();
|
let n_exercises = app_state.exercises().len();
|
||||||
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);
|
||||||
}
|
}
|
||||||
println!("All exercises have been reset");
|
println!("All exercises have been reset");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user