mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-02-12 12:49:18 +00:00
fixed minor error
This commit is contained in:
parent
0d38060b1b
commit
34830b3c9b
@ -180,8 +180,8 @@ 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);
|
|
||||||
}
|
}
|
||||||
|
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)?;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user