Expressions Example
fn main() { // "2.0" is an expression let a = 2.0; // "let b = 3.0;" is a statement let b = 3.0; //"b" ^ is a pattern println!("a times b is {}", multiply(a, b)); //Statement let a = { //Expression if 4 % 2 == 0 { //Expression "even" } else { //Expression "odd" } }; assert_eq!(a, "even"); } fn multiply(a: f64, b: f64) -> f64 { //Expression a * b }