We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unnecessary_mut_passed
1 parent ce86f90 commit a709559Copy full SHA for a709559
clippy_lints/src/mut_reference.rs
@@ -6,7 +6,7 @@ use rustc_middle::ty::{self, Ty};
6
use rustc_session::{declare_lint_pass, declare_tool_lint};
7
8
declare_clippy_lint! {
9
- /// **What it does:** Detects giving a mutable reference to a function that only
+ /// **What it does:** Detects passing a mutable reference to a function that only
10
/// requires an immutable reference.
11
///
12
/// **Why is this bad?** The immutable reference rules out all other references
0 commit comments