commit mytest

This commit is contained in:
haozhuoD 2021-07-09 17:01:00 +00:00
parent b85368d722
commit 2ad1927613
3 changed files with 9 additions and 5 deletions

View File

@ -1,8 +1,12 @@
// functions1.rs
// Make me compile! Execute `rustlings hint functions1` for hints :)
// I AM NOT DONE
fn main() {
call_me();
}
fn call_me(){
println!("call me");
}

View File

@ -1,13 +1,13 @@
// functions2.rs
// Make me compile! Execute `rustlings hint functions2` for hints :)
// I AM NOT DONE
fn main() {
call_me(3);
}
fn call_me(num:) {
fn call_me(num:i32) {
for i in 0..num {
println!("Ring! Call number {}", i + 1);
}

View File

@ -1,10 +1,10 @@
// functions3.rs
// Make me compile! Execute `rustlings hint functions3` for hints :)
// I AM NOT DONE
fn main() {
call_me();
call_me(6);
}
fn call_me(num: u32) {