write a lot on Copy and Clone. Now part 05 is too long...
[rust-101.git] / src / part03.rs
index e34ef5878e93edc667640e0bc3283c7ba8ec6657..ddaa47e01fbcf12e37e3b59156f8815830d75219 100644 (file)
@@ -88,7 +88,7 @@ pub fn main() {
     min.print();
 }
 
-// **Exercise**: Define a trait `Print` to write a generic version of `SomethingOrNothing::print`.
+// **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.
 // 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).