summaryrefslogtreecommitdiff
path: root/exercises/23_conversions/using_as.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-17 23:34:27 +0200
committermo8it <mo8it@proton.me>2024-04-17 23:34:27 +0200
commit2f810a4da67233716ad93e00afff6e8b260f4807 (patch)
treef5a33357141d25d08b6726910efe33f2338b9cdb /exercises/23_conversions/using_as.rs
parentcb9f1ac9ce3c834b0cca964b6809b74508f80b54 (diff)
Clean up and unify exercises
Diffstat (limited to 'exercises/23_conversions/using_as.rs')
-rw-r--r--exercises/23_conversions/using_as.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/exercises/23_conversions/using_as.rs b/exercises/23_conversions/using_as.rs
index 9f617ec..94b1bb3 100644
--- a/exercises/23_conversions/using_as.rs
+++ b/exercises/23_conversions/using_as.rs
@@ -1,14 +1,9 @@
-// using_as.rs
-//
// Type casting in Rust is done via the usage of the `as` operator. Please note
// that the `as` operator is not only used when type casting. It also helps with
// renaming imports.
//
// The goal is to make sure that the division does not fail to compile and
// returns the proper type.
-//
-// Execute `rustlings hint using_as` or use the `hint` watch subcommand for a
-// hint.
fn average(values: &[f64]) -> f64 {
let total = values.iter().sum::<f64>();