๐Ÿ“ฆ huangsam / rustlings

๐Ÿ“„ functions2.rs ยท 11 lines
1
2
3
4
5
6
7
8
9
10
11// TODO: Add the missing type of the argument `num` after the colon `:`.
fn call_me(num: i32) {
    for i in 0..num {
        println!("Ring! Call number {}", i + 1);
    }
}

fn main() {
    call_me(3);
}