Skip to content

Commit

Permalink
fix(functions2): Change signature to trigger precise error message: (#…
Browse files Browse the repository at this point in the history
…605)

Now trigger this error:
```
error: expected type, found `)`
  --> exercises/functions/functions2.rs:10:16
   |
10 | fn call_me(num:) {
   |                ^ expected type

```
  • Loading branch information
darnuria committed Dec 27, 2020
1 parent 4ac70a9 commit 0ef9594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/functions/functions2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fn main() {
call_me(3);
}

fn call_me(num) {
fn call_me(num:) {
for i in 0..num {
println!("Ring! Call number {}", i + 1);
}
Expand Down

0 comments on commit 0ef9594

Please sign in to comment.