summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/no_effect_replace.txt
blob: 646d45287ef504630ec34cd59f6190ee8107466e (plain)
1
2
3
4
5
6
7
8
9
10
11
### What it does
Checks for `replace` statements which have no effect.

### Why is this bad?
It's either a mistake or confusing.

### Example
```
"1234".replace("12", "12");
"1234".replacen("12", "12", 1);
```