We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bd9889 commit d8f0a14Copy full SHA for d8f0a14
clippy_lints/src/mut_reference.rs
@@ -9,8 +9,8 @@ declare_clippy_lint! {
9
/// **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
13
- /// 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.
14
15
/// **Known problems:** None.
16
0 commit comments