X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/816ab35bec9dec1571988fcf97e57a38a32f5ff5..63b086dfbd9a5e90700f595c2e6ef7ee10522559:/src/part01.rs diff --git a/src/part01.rs b/src/part01.rs index d046a1b..8b14050 100644 --- a/src/part01.rs +++ b/src/part01.rs @@ -79,7 +79,7 @@ impl NumberOrNothing { fn read_vec() -> Vec { vec![18,5,7,2,9,27] } -pub fn part_main() { +pub fn main() { let vec = read_vec(); let min = vec_min(vec); min.print(); @@ -87,7 +87,7 @@ pub fn part_main() { // You will have to replace `part00` by `part01` in the `main` function in // `main.rs` to run this code. -// **Exercise**: Write a funtion `vec_avg` that computes the average value of a `Vec`. +// **Exercise 01.1**: Write a funtion `vec_avg` that computes the average value of a `Vec`. // // *Hint*: `vec.len()` returns the length of a vector `vec`.