16 lines
No EOL
247 B
Text
16 lines
No EOL
247 B
Text
### What it does
|
|
Checks for function arguments having the similar names
|
|
differing by an underscore.
|
|
|
|
### Why is this bad?
|
|
It affects code readability.
|
|
|
|
### Example
|
|
```
|
|
fn foo(a: i32, _a: i32) {}
|
|
```
|
|
|
|
Use instead:
|
|
```
|
|
fn bar(a: i32, _b: i32) {}
|
|
``` |