From c22ded11e57ece41455e18e11eba8f64606c8860 Mon Sep 17 00:00:00 2001 From: Joshua Holmer Date: Mon, 15 Feb 2016 10:32:04 -0500 Subject: [PATCH] Reword lint documentation char is faster, proven by benchmark. --- src/methods.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/methods.rs b/src/methods.rs index f1aaaf633dd..c8d5fa08ff1 100644 --- a/src/methods.rs +++ b/src/methods.rs @@ -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. ///