Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
buttercrab committed Feb 13, 2022
1 parent 2ebe751 commit 48d310e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clippy_lints/src/only_used_in_recursion.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 48d310e

Please sign in to comment.