Fix lint documentation

This commit is contained in:
Michael Schubart 2023-02-27 19:31:59 +00:00
parent 2a9c254e23
commit 08708198fb

View file

@ -30,6 +30,7 @@ declare_clippy_lint! {
///
/// ### 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 @@ declare_clippy_lint! {
/// ```
/// Use instead:
/// ```rust
/// # let samples = vec![3, 1, 2];
/// let mut sorted_samples = samples.clone();
/// sorted_samples.sort();
/// for sample in &sorted_samples {