diff options
| author | Axel Viala <axel.viala@darnuria.eu> | 2020-12-27 12:36:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-27 12:36:38 +0100 |
| commit | 0ef95947cc30482e63a7045be6cc2fb6f6dcb4cc (patch) | |
| tree | a643a328a8bdfb0d7e94169230c353f76311f029 /exercises/functions | |
| parent | 4ac70a99aea688a629e5d7ef99bb8686fa7f6301 (diff) | |
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
```
Diffstat (limited to 'exercises/functions')
| -rw-r--r-- | exercises/functions/functions2.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/functions/functions2.rs b/exercises/functions/functions2.rs index 108ba38..5721a17 100644 --- a/exercises/functions/functions2.rs +++ b/exercises/functions/functions2.rs @@ -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); } |
