Initial commit
This commit is contained in:
11
solutions/02_functions/functions2.rs
Normal file
11
solutions/02_functions/functions2.rs
Normal file
@@ -0,0 +1,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);
|
||||
}
|
||||
Reference in New Issue
Block a user