mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-06-15 00:04:58 +02:00
Add solutions to functions
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
fn main() {
|
||||
call_me(3);
|
||||
}
|
||||
|
||||
// TODO: Add the missing type of the argument `num` after the colon `:`.
|
||||
fn call_me(num:) {
|
||||
for i in 0..num {
|
||||
println!("Ring! Call number {}", i + 1);
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
call_me(3);
|
||||
}
|
||||
|
Reference in New Issue
Block a user