Skip to content

Commit 86acea4

Browse files
authored
Rollup merge of #102123 - schteve:clippy-note, r=Manishearth
Add note to clippy::non_expressive_names doc Addresses confusion in rust-lang/rust-clippy#9514 by updating the lint docs.
2 parents ecbc00f + 51c752a commit 86acea4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tools/clippy/clippy_lints/src/non_expressive_names.rs

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ declare_clippy_lint! {
1515
/// ### What it does
1616
/// Checks for names that are very similar and thus confusing.
1717
///
18+
/// Note: this lint looks for similar names throughout each
19+
/// scope. To allow it, you need to allow it on the scope
20+
/// level, not on the name that is reported.
21+
///
1822
/// ### Why is this bad?
1923
/// It's hard to distinguish between names that differ only
2024
/// by a single character.

0 commit comments

Comments
 (0)