mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 22:53:28 +00:00
add documentation
This commit is contained in:
parent
2ebe7516a8
commit
48d310e869
@ -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…
Reference in New Issue
Block a user