From 4e473bac9da3f15a946e9caaa9f5f0b6d41389b5 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Tue, 12 Nov 2024 22:04:05 +0200 Subject: [PATCH] record progress: as --- exercises/23_conversions/using_as.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/23_conversions/using_as.rs b/exercises/23_conversions/using_as.rs index c131d1f..dff453b 100644 --- a/exercises/23_conversions/using_as.rs +++ b/exercises/23_conversions/using_as.rs @@ -5,7 +5,7 @@ fn average(values: &[f64]) -> f64 { let total = values.iter().sum::(); // TODO: Make a conversion before dividing. - total / values.len() + total / values.len() as f64 } fn main() {