some more exercises
[rust-101.git] / src / part01.rs
index bff079b7db7af065dc04fd95ff371333157dcfe0..05696a50f98f17678e3b9922acc3a17157d9c6ce 100644 (file)
@@ -89,9 +89,8 @@ pub fn main() {
 // You will have to replace `part00` by `part01` in the `main` function in
 // `main.rs` to run this code.
 
-// **Exercise 01.1**: Write a funtion `vec_avg` that computes the average value of a `Vec<i32>` (rounded down to
-// the next integer).
-// 
-// *Hint*: `vec.len() as i32` returns the length of a vector `vec` as signed integer.
+// **Exercise 01.1**: Write a funtion `vec_sum` that computes the sum of all values of a `Vec<i32>`.
+
+// **Exercise 01.2**: Write a function `vec_print` that takes a vector and prints all its elements.
 
 // [index](main.html) | [previous](part00.html) | [next](part02.html)