mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 22:48:48 +00:00
add documentation
This commit is contained in:
parent
2ebe7516a8
commit
48d310e869
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue