summaryrefslogtreecommitdiff
path: root/functions/functions3.rs
blob: 3dba67ccb2df3787787c737006123d3278ad00df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Make me compile! Scroll down for hints :)

fn main() {
    call_me();
}

fn call_me(num: i32) {
    for i in 0..num {
        println!("Ring! Call number {}", i + 1);
    }
}




























// This time, the function *declaration* is okay, but there's something wrong
// with the place where we're calling the function.