mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 22:02:22 -05:00
feat(list): updated progress percentage
This commit is contained in:
parent
bd48544e25
commit
1c6f7e4b7b
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ fn main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let percentage_progress = exercises_done as f32 / exercises.len() as f32;
|
let percentage_progress = exercises_done as f32 / exercises.len() as f32 * 100.0;
|
||||||
println!(
|
println!(
|
||||||
"Progress: You completed {} / {} exercises ({:.2} %).",
|
"Progress: You completed {} / {} exercises ({:.2} %).",
|
||||||
exercises_done,
|
exercises_done,
|
||||||
|
|
Loading…
Reference in a new issue