Functions
Case
Rust uses snake case for
function and variable names. Functions always start with fn
Parameters
In rust you must declare parameter types
Rust is expressive
Rust is an expressive language, so you have to do stuff like this:
Return values
Unless you add a return statement, most functions return the last
expression implicitly: