From b7ce2d2a74f4c5979c2db7d68965bb5988c282e1 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Mon, 20 Apr 2015 19:58:44 +0200 Subject: [PATCH] positive tests are preferable to negative ones --- src/librustc_lint/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 7f1a4b659edb4..e548de02c0256 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -923,7 +923,7 @@ impl NonSnakeCase { allow_underscore = match c { '_' if !allow_underscore => return false, '_' => false, - c if !c.is_uppercase() => true, + c if c.is_lowercase() => true, _ => return false, }; true