Reword lint documentation
char is faster, proven by benchmark.
This commit is contained in:
parent
643a223f71
commit
c22ded11e5
@ -299,7 +299,7 @@ declare_lint! {
|
||||
|
||||
/// **What it does:** This lint checks for string methods that receive a single-character `str` as an argument, e.g. `_.split("x")`.
|
||||
///
|
||||
/// **Why is this bad?** Performing these methods using a `str` may be slower than using a `char`.
|
||||
/// **Why is this bad?** Performing these methods using a `char` is faster than using a `str`.
|
||||
///
|
||||
/// **Known problems:** Does not catch multi-byte unicode characters.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user