X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/801f2b59728fba1e13d3e34a08457b812f8c0f56..d29f51c818176f4249179ceba33de1ff41db2c90:/src/part03.rs?ds=inline diff --git a/src/part03.rs b/src/part03.rs index 44431e6..25f9386 100644 --- a/src/part03.rs +++ b/src/part03.rs @@ -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