X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/306776311fd5ec57a462ea227c40ba0acb2fec73..b89eed2cb450e67dd00102d1018adbb9a0cb1cae:/src/part02.rs?ds=inline diff --git a/src/part02.rs b/src/part02.rs index a01081b..44a20d4 100644 --- a/src/part02.rs +++ b/src/part02.rs @@ -17,7 +17,7 @@ pub enum SomethingOrNothing { } // Instead of writing out all the variants, we can also just import them all at once. pub use self::SomethingOrNothing::*; -//@ What this does is to define an entire family of types: We can now write +//@ What this does is define an entire family of types: We can now write //@ `SomethingOrNothing` to get back our `NumberOrNothing`. type NumberOrNothing = SomethingOrNothing; //@ However, we can also write `SomethingOrNothing` or even `SomethingOrNothing>`. @@ -141,7 +141,7 @@ pub fn main() { min.print(); } -//@ If this printed `3`, then you generic `vec_min` is working! So get ready for the next part. +//@ If this printed `3`, then your generic `vec_min` is working! So get ready for the next part. // **Exercise 02.1**: Change your program such that it computes the minimum of a `Vec` (where `f32` is the type // of 32-bit floating-point numbers). You should not change `vec_min` in any way, obviously!