Skip to content

Commit 0ef9594

Browse files
authored
fix(functions2): Change signature to trigger precise error message: (#605)
Now trigger this error: ``` error: expected type, found `)` --> exercises/functions/functions2.rs:10:16 | 10 | fn call_me(num:) { | ^ expected type ```
1 parent 4ac70a9 commit 0ef9594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/functions/functions2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn main() {
77
call_me(3);
88
}
99

10-
fn call_me(num) {
10+
fn call_me(num:) {
1111
for i in 0..num {
1212
println!("Ring! Call number {}", i + 1);
1313
}

0 commit comments

Comments
 (0)