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 @@
///
/// ### 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 {