Skip to content

Commit

Permalink
Reword lint documentation
Browse files Browse the repository at this point in the history
char is faster, proven by benchmark.
  • Loading branch information
Joshua Holmer committed Feb 15, 2016
1 parent 643a223 commit c22ded1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/methods.rs
Expand Up @@ -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.
///
Expand Down

0 comments on commit c22ded1

Please sign in to comment.