summaryrefslogtreecommitdiff
path: root/functions/src/main.rs
blob: 43284ffba18f6fffb4bc151795aad19f36fdec73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
fn main() {
    let x = plus_one(5);

    println!("The value of x is {}", x);
}

fn plus_one(x: i32) -> i32 {
    x + 1
}