mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 21:29:18 +00:00
Done variables
This commit is contained in:
parent
23889d41bb
commit
cb08494f2b
@ -1,8 +1,11 @@
|
||||
// functions1.rs
|
||||
// Execute `rustlings hint functions1` or use the `hint` watch subcommand for a hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
||||
|
||||
fn main() {
|
||||
call_me();
|
||||
}
|
||||
fn call_me(){
|
||||
|
||||
}
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
// functions2.rs
|
||||
// Execute `rustlings hint functions2` or use the `hint` watch subcommand for a hint.
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user