about summary refs log tree commit diff
path: root/clippy_lints/src/mut_reference.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints/src/mut_reference.rs')
-rw-r--r--clippy_lints/src/mut_reference.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/clippy_lints/src/mut_reference.rs b/clippy_lints/src/mut_reference.rs
index 67a1ac78a67..58a8e1a1064 100644
--- a/clippy_lints/src/mut_reference.rs
+++ b/clippy_lints/src/mut_reference.rs
@@ -16,7 +16,11 @@ declare_clippy_lint! {
     ///
     /// **Example:**
     /// ```ignore
+    /// // Bad
     /// my_vec.push(&mut value)
+    ///
+    /// // Good
+    /// my_vec.push(&value)
     /// ```
     pub UNNECESSARY_MUT_PASSED,
     style,