mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
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.
This commit is contained in:
commit
2063b8f137
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue