rust/src/docs/duplicate_underscore_argument.txt
2022-09-09 13:36:26 +02:00

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) {}
```