]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/no_effect_replace.txt
Rollup merge of #101389 - lukaslueg:rcgetmutdocs, r=m-ou-se
[rust.git] / src / tools / clippy / src / docs / no_effect_replace.txt
1 ### What it does
2 Checks for `replace` statements which have no effect.
3
4 ### Why is this bad?
5 It's either a mistake or confusing.
6
7 ### Example
8 ```
9 "1234".replace("12", "12");
10 "1234".replacen("12", "12", 1);
11 ```