Skip to content

Commit 5d723d0

Browse files
committed
Auto merge of rust-lang#5913 - HactarCE:patch-1, r=flip1995
Fix typo in description of unnecessary_mut_passed changelog: Correct "immutable reference" to "mutable reference" in description of `unnecessary_mut_passed`
2 parents 3bd9889 + d8f0a14 commit 5d723d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/mut_reference.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ declare_clippy_lint! {
99
/// **What it does:** Detects passing a mutable reference to a function that only
1010
/// requires an immutable reference.
1111
///
12-
/// **Why is this bad?** The immutable reference rules out all other references
13-
/// to the value. Also the code misleads about the intent of the call site.
12+
/// **Why is this bad?** The mutable reference rules out all other references to
13+
/// the value. Also the code misleads about the intent of the call site.
1414
///
1515
/// **Known problems:** None.
1616
///

0 commit comments

Comments
 (0)