part_main -> main
[rust-101.git] / src / part02.rs
index 4e0fa6b8f2709c5a607213c8d91f4632dcc17ce3..51c20cf9dc76c8381d5415417d0e35033e4614b7 100644 (file)
@@ -122,7 +122,7 @@ impl SomethingOrNothing<i32> {
 fn read_vec() -> Vec<i32> {
     vec![18,5,7,3,9,27]
 }
-pub fn part_main() {
+pub fn main() {
     let vec = read_vec();
     let min = vec_min(vec);
     min.print();
@@ -135,7 +135,7 @@ pub fn part_main() {
 // *for an existing type*. With the hierarchical approach of, e.g., C++ or Java,
 // that's not possible: We cannot make an existing type suddenly also inherit from our abstract base class.
 
-// **Exercise**: Define a trait "Print" to write a generic version of `SomethingOrNothing::print`.
+// **Exercise**: 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).