mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
Fix typo in description of unnecessary_mut_passed
This commit is contained in:
parent
3bd98895f1
commit
d8f0a14da1
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@ declare_clippy_lint! {
|
|||
/// **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
|
||||
/// 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.
|
||||
///
|
||||
/// **Known problems:** None.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue