record progress: as
This commit is contained in:
parent
d1c6985e85
commit
4e473bac9d
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
fn average(values: &[f64]) -> f64 {
|
||||
let total = values.iter().sum::<f64>();
|
||||
// TODO: Make a conversion before dividing.
|
||||
total / values.len()
|
||||
total / values.len() as f64
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Reference in a new issue