summaryrefslogtreecommitdiff
path: root/solutions/02_functions/functions2.rs
blob: f14ffa350ccb16298e5ef17c43a8133f764fc8ec (plain)
1
2
3
4
5
6
7
8
9
10
11
// The type of function arguments must be annotated.
// Added the type annotation `u64`.
fn call_me(num: u64) {
    for i in 0..num {
        println!("Ring! Call number {}", i + 1);
    }
}

fn main() {
    call_me(3);
}