]> git.lizzy.rs Git - rust.git/commitdiff
Add note to clippy::non_expressive_names doc
authorSteve Heindel <stevenheindel@gmail.com>
Wed, 21 Sep 2022 23:45:57 +0000 (19:45 -0400)
committerSteve Heindel <stevenheindel@gmail.com>
Wed, 21 Sep 2022 23:45:57 +0000 (19:45 -0400)
src/tools/clippy/clippy_lints/src/non_expressive_names.rs

index b96af06b8d7c69a63c5c177970b322f6f98d01fa..a7cd1f6d0652b199f27f527d089369c975b4c71a 100644 (file)
     /// ### What it does
     /// Checks for names that are very similar and thus confusing.
     ///
+    /// Note: this lint looks for similar names throughout each
+    /// scope. To allow it, you need to allow it on the scope
+    /// level, not on the name that is reported.
+    ///
     /// ### Why is this bad?
     /// It's hard to distinguish between names that differ only
     /// by a single character.