X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/09a36e34a7b4f163c25fb971771bc4c7edd63e2b..369875f931d841112dd2b6651fc968bb6c569cdb:/src/part03.rs diff --git a/src/part03.rs b/src/part03.rs index ddaa47e..45caaec 100644 --- a/src/part03.rs +++ b/src/part03.rs @@ -76,7 +76,7 @@ fn read_vec() -> Vec { // as the documentation is quite easy to navigate and you should get used to that. // For the rest of the code, we just re-use part 02 by importing it with `use`. -// I already sneaked a bunch of `pub` in the other module to make this possible: Only +// I already sneaked a bunch of `pub` in part 02 to make this possible: Only // items declared public can be imported elsewhere. use part02::{SomethingOrNothing,Something,Nothing,vec_min}; @@ -103,7 +103,7 @@ trait Print { } impl SomethingOrNothing { fn print2(self) { - panic!("Not yet implemented.") + unimplemented!() } }