record progress: as

This commit is contained in:
Denis-Cosmin Nutiu 2024-11-12 22:04:05 +02:00
parent d1c6985e85
commit 4e473bac9d

View file

@ -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() {