Fundamentals10 / 42
Up next

Functions

fn add(a: i32, b: i32) -> i32 {
    a + b
}

fn main() {
    println!("{}", add(2, 3));
}
What you're solving

typed params and the tail expression