add part03 solutions
[rust-101.git] / src / part03.rs
index 44431e6da35c2b25376b0c5f4ddac9a7e0a61089..25f9386f4caf5ccd8cc70a49ce611a6ff64f0999 100644 (file)
@@ -101,7 +101,7 @@ pub fn main() {
 
 // **Exercise 03.1**: Define a trait `Print` to write a generic version of
 // `SomethingOrNothing::print`.
-// Implement that trait for `i32`, and change the code above to use it.
+// Implement that trait for `i32`, and change `main` above to use the new generic `print` function.
 // I will again provide a skeleton for this solution. It also shows how to attach bounds to generic
 // implementations (just compare it to the `impl` block from the previous exercise).
 // You can read this as "For all types `T` satisfying the `Print` trait, I provide an implementation