add documentation

This commit is contained in:
Jaeyong Sung 2022-02-13 13:36:27 +09:00
parent 2ebe7516a8
commit 48d310e869
No known key found for this signature in database
GPG Key ID: 2B86898CCB2A5486

View File

@ -46,6 +46,12 @@ declare_clippy_lint! {
///
/// For example, the argument `b` is only used in recursion, but the lint would not catch it.
///
/// List of some examples that can not be caught:
/// - binary operation of non-primitive types
/// - closure usage
/// - some `break` relative operations
/// - struct pattern binding
///
/// ### Example
/// ```rust
/// fn f(a: usize, b: usize) -> usize {