]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/mut_reference.rs
Give more corrected code examples in doc
[rust.git] / clippy_lints / src / mut_reference.rs
index 67a1ac78a677749565e4fb5afd8968dfbef9809d..58a8e1a1064ae7603f46bce495a4a76c70afaff7 100644 (file)
     ///
     /// **Example:**
     /// ```ignore
+    /// // Bad
     /// my_vec.push(&mut value)
+    ///
+    /// // Good
+    /// my_vec.push(&value)
     /// ```
     pub UNNECESSARY_MUT_PASSED,
     style,