mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-03 09:19:18 +00:00
15 lines
254 B
Rust
15 lines
254 B
Rust
// functions3.rs
|
|
// Make me compile! Execute `rustlings hint functions3` for hints :)
|
|
|
|
|
|
fn main() {
|
|
let test:i8 = 100;
|
|
call_me(test.into());
|
|
}
|
|
|
|
fn call_me(num: i32) {
|
|
for i in 0..num {
|
|
println!("Ring! Call number {}", i + 1);
|
|
}
|
|
}
|