functions2.rs (222B)
1 // The type of function arguments must be annotated. 2 // Added the type annotation `u64`. 3 fn call_me(num: u64) { 4 for i in 0..num { 5 println!("Ring! Call number {}", i + 1); 6 } 7 } 8 9 fn main() { 10 call_me(3); 11 }
rustlingssolving rustlings ft. dracuxan | |
| git clone [email protected]:dracuxan/rustlings.git | |
| Log | Files | Refs |