summaryrefslogblamecommitdiff
path: root/rust-book/functions/src/main.rs
blob: 43284ffba18f6fffb4bc151795aad19f36fdec73 (plain) (tree)
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
}