summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/duplicate_underscore_argument.txt
blob: a8fcd6a9fbe680cc7cd987ac16ff2d733879a15f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
### 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) {}
```