some more exercises
[rust-101.git] / src / part01.rs
index dc97d8dbc1d957e29c5009207809523c0ea3d793..05696a50f98f17678e3b9922acc3a17157d9c6ce 100644 (file)
@@ -89,8 +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>`.
-// 
-// *Hint*: `vec.len()` returns the length of a vector `vec`.
+// **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)