summaryrefslogtreecommitdiff
path: root/exercises/functions/functions3.rs
blob: 63bb58697cf77f908c95548a0e38a20b995accfc (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
42
43
44
// functions3.rs
// Make me compile! Scroll down for hints :)

// I AM NOT DONE

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.