Skip to content

Commit

Permalink
Auto merge of #5913 - HactarCE:patch-1, r=flip1995
Browse files Browse the repository at this point in the history
Fix typo in description of unnecessary_mut_passed

changelog: Correct "immutable reference" to "mutable reference" in description of `unnecessary_mut_passed`
  • Loading branch information
bors committed Aug 16, 2020
2 parents 3bd9889 + d8f0a14 commit 5d723d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/mut_reference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ declare_clippy_lint! {
/// **What it does:** Detects passing a mutable reference to a function that only
/// requires an immutable reference.
///
/// **Why is this bad?** The immutable reference rules out all other references
/// to the value. Also the code misleads about the intent of the call site.
/// **Why is this bad?** The mutable reference rules out all other references to
/// the value. Also the code misleads about the intent of the call site.
///
/// **Known problems:** None.
///
Expand Down

0 comments on commit 5d723d0

Please sign in to comment.