From a133dc445164438b86f9d89f012839820ea0bdb7 Mon Sep 17 00:00:00 2001 From: Alan Jenkins Date: Sun, 24 May 2015 19:06:54 +0100 Subject: [PATCH] Fix copy+paste in description of LEN_ZERO --- src/len_zero.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/len_zero.rs b/src/len_zero.rs index 18ddbccc9a2f..2ed0a6a9fabf 100644 --- a/src/len_zero.rs +++ b/src/len_zero.rs @@ -8,7 +8,7 @@ use rustc::middle::def::{DefTy, DefStruct, DefTrait}; use syntax::codemap::{Span, Spanned}; declare_lint!(pub LEN_ZERO, Warn, - "Warn on usage of double-mut refs, e.g. '&mut &mut ...'"); + "Warn when .is_empty() could be used instead of checking .len()"); declare_lint!(pub LEN_WITHOUT_IS_EMPTY, Warn, "Warn on traits and impls that have .len() but not .is_empty()");