diff options
| author | bors <bors@rust-lang.org> | 2020-05-25 17:02:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-05-25 17:02:12 +0000 |
| commit | 7ca335a97dab0869ec6e407a15bea86a7c7c629e (patch) | |
| tree | 87786e57bb9eaf28be7e43cf907b0c61d5372a84 | |
| parent | f162dc3ea00219eb8118da9991ddec27a0a50b00 (diff) | |
| parent | a709559705db19785b29ce4a9044d7aebaefec31 (diff) | |
| download | rust-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.rs | 2 |
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 |
