From 08708198fbb8eb4bd8df76bded9fcdb32adb8163 Mon Sep 17 00:00:00 2001 From: Michael Schubart Date: Mon, 27 Feb 2023 19:31:59 +0000 Subject: [PATCH] Fix lint documentation --- clippy_lints/src/collection_is_never_read.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clippy_lints/src/collection_is_never_read.rs b/clippy_lints/src/collection_is_never_read.rs index fbc66a2155f..f20c09a4448 100644 --- a/clippy_lints/src/collection_is_never_read.rs +++ b/clippy_lints/src/collection_is_never_read.rs @@ -30,6 +30,7 @@ /// /// ### Example /// ```rust + /// # let samples = vec![3, 1, 2]; /// let mut sorted_samples = samples.clone(); /// sorted_samples.sort(); /// for sample in &samples { // Oops, meant to use `sorted_samples`. @@ -38,6 +39,7 @@ /// ``` /// Use instead: /// ```rust + /// # let samples = vec![3, 1, 2]; /// let mut sorted_samples = samples.clone(); /// sorted_samples.sort(); /// for sample in &sorted_samples {