Clarify the documentation of the unnecessary_mut_passed lint

This commit is contained in:
Nick Torres 2020-05-23 16:14:38 -07:00
parent ce86f907ef
commit a709559705

View File

@ -6,7 +6,7 @@ use rustc_middle::ty::{self, Ty};
use rustc_session::{declare_lint_pass, declare_tool_lint};
declare_clippy_lint! {
/// **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
/// requires an immutable reference.
///
/// **Why is this bad?** The immutable reference rules out all other references