diff options
| author | mo8it <mo8it@proton.me> | 2024-07-03 15:26:35 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-07-03 15:26:35 +0200 |
| commit | f5ce4cf0a50e88e0e70d90e139a6e981791c9af0 (patch) | |
| tree | b908688a611c6e64ff1bb7a6a94e9547b7b575de /solutions/02_functions/functions3.rs | |
| parent | 888ad35d10e8bc6832c11fd8268697311497c1c9 (diff) | |
| parent | ff3e6c05a52aa0c7e558d86404cfe8495a4412fd (diff) | |
Merge branch 'v6'
Diffstat (limited to 'solutions/02_functions/functions3.rs')
| -rw-r--r-- | solutions/02_functions/functions3.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/solutions/02_functions/functions3.rs b/solutions/02_functions/functions3.rs new file mode 100644 index 0000000..c581c42 --- /dev/null +++ b/solutions/02_functions/functions3.rs @@ -0,0 +1,10 @@ +fn call_me(num: u32) { + for i in 0..num { + println!("Ring! Call number {}", i + 1); + } +} + +fn main() { + // `call_me` expects an argument. + call_me(5); +} |
