+// Finally, let's call our functions and run the code!
+// But, wait, we would like to actually see something, so we need to print the result.
+// Of course Rust can print numbers, but after calling `vec_min`, we have a `NumberOrNothing`.
+// So let's write a small helper function that prints such values.
+
+// `println!` is again a macro, where the first argument is a *format string*. For
+// now, you just need to know that `{}` is the placeholder for a value, and that Rust
+// will check at compile-time that you supplied the right number of arguments.
+fn print_number_or_nothing(n: NumberOrNothing) {
+ match n {
+ Nothing => println!("The number is: <nothing>"),
+ Number(n) => println!("The number is: {}", n),
+ };
+}
+
+// Putting it all together:
+pub fn main() {
+ let vec = read_vec();
+ let min = vec_min(vec);
+ print_number_or_nothing(min);
+}
+
+// Now try `cargo run` on the console to run above code.
+
+// Yay, it said "1"! That's actually the right answer. Okay, we could have
+// computed that ourselves, but that's besides the point. More importantly:
+// You completed the first part of the course.
+
+// [index](main.html) | previous | [next](part01.html)