lots of work on parts 05 and 06
[rust-101.git] / src / part00.rs
index 90b04ef75bd6bf15d1ccc66b4cbf496c168e70ac..4deb82946709e1b5944e9076e4c3db69bd52b98f 100644 (file)
@@ -7,6 +7,7 @@
 // We are going to make use of the standard library, so let's import that:
 use std;
 
+// ## Getting started
 // Let us start by thinking about the *type* of our function. Rust forces us to give the types of
 // all arguments, and the return type, before we even start writing the body. In the case of our minimum
 // function, we may be inclined to say that it returns a number. But then we would be in trouble: What's
@@ -91,7 +92,7 @@ fn print_number_or_nothing(n: NumberOrNothing) {
 }
 
 // Putting it all together:
-pub fn part_main() {
+pub fn main() {
     let vec = read_vec();
     let min = vec_min(vec);
     print_number_or_nothing(min);