Skip to content

Commit

Permalink
Add note to clippy::non_expressive_names doc
Browse files Browse the repository at this point in the history
  • Loading branch information
schteve committed Sep 21, 2022
1 parent db4b4d3 commit 51c752a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/clippy/clippy_lints/src/non_expressive_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ declare_clippy_lint! {
/// ### 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.
Expand Down

0 comments on commit 51c752a

Please sign in to comment.