Reword lint documentation

char is faster, proven by benchmark.
This commit is contained in:
Joshua Holmer 2016-02-15 10:32:04 -05:00
parent 643a223f71
commit c22ded11e5

View File

@ -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")`. /// **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. /// **Known problems:** Does not catch multi-byte unicode characters.
/// ///