mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-07 03:09:19 +00:00
fix: improve function argument type
This commit is contained in:
parent
a02b279750
commit
4cd09439fc
@ -7,7 +7,7 @@ fn main() {
|
||||
call_me();
|
||||
}
|
||||
|
||||
fn call_me(num: i32) {
|
||||
fn call_me(num: u32) {
|
||||
for i in 0..num {
|
||||
println!("Ring! Call number {}", i + 1);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user