Fix lint documentation
This commit is contained in:
parent
2a9c254e23
commit
08708198fb
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user