Skip to content

Commit 7ca335a

Browse files
committed
Auto merge of #5639 - nickrtorres:unnecessary-mut-passed-doc-cleanup, r=phansch
Clarify the documentation of the `unnecessary_mut_passed` lint fixes #5433 by replacing "giving" with "passing" changelog: Clarifies documentation for `unnecessary_mut_passed`
2 parents f162dc3 + a709559 commit 7ca335a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/mut_reference.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use rustc_middle::ty::{self, Ty};
66
use rustc_session::{declare_lint_pass, declare_tool_lint};
77

88
declare_clippy_lint! {
9-
/// **What it does:** Detects giving a mutable reference to a function that only
9+
/// **What it does:** Detects passing a mutable reference to a function that only
1010
/// requires an immutable reference.
1111
///
1212
/// **Why is this bad?** The immutable reference rules out all other references

0 commit comments

Comments
 (0)