Calling Functions
We'll cover the following...
Let’s go into a bit more depth on how to call a function. Let’s see an example:
Press + to interact
fn greet(name: &str) {println!("Hello {}", name);}fn main() {greet("Michael");}
In order to call a function, we put the name of the function, followed by an open parenthesis, then the parameter list, then by a close parenthesis. A function call itself is an ...