mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-08 03:39:18 +00:00
commit
2a1c5989ac
@ -1,15 +1,15 @@
|
|||||||
// functions2.rs
|
// functions2.rs
|
||||||
//
|
//
|
||||||
// Execute `rustlings hint functions2` or use the `hint` watch subcommand for a
|
// Execute `rustlings hint functions2` or use the `hint` watch subcommand for a
|
||||||
// hint.
|
|
||||||
|
|
||||||
// I AM NOT DONE
|
|
||||||
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
call_me(3);
|
call_me(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn call_me(num:) {
|
fn call_me(num:i32) {
|
||||||
for i in 0..num {
|
for i in 0..num {
|
||||||
println!("Ring! Call number {}", i + 1);
|
println!("Ring! Call number {}", i + 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user