about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-05-25 17:02:12 +0000
committerbors <bors@rust-lang.org>2020-05-25 17:02:12 +0000
commit7ca335a97dab0869ec6e407a15bea86a7c7c629e (patch)
tree87786e57bb9eaf28be7e43cf907b0c61d5372a84
parentf162dc3ea00219eb8118da9991ddec27a0a50b00 (diff)
parenta709559705db19785b29ce4a9044d7aebaefec31 (diff)
downloadrust-7ca335a97dab0869ec6e407a15bea86a7c7c629e.tar.gz
rust-7ca335a97dab0869ec6e407a15bea86a7c7c629e.zip
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`
-rw-r--r--clippy_lints/src/mut_reference.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/mut_reference.rs b/clippy_lints/src/mut_reference.rs
index e5680482e5b..67a1ac78a67 100644
--- a/clippy_lints/src/mut_reference.rs
+++ b/clippy_lints/src/mut_reference.rs
@@ -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