Rollup merge of #63009 - Rosto75:master, r=matklad
Remove redundant `mut` from variable declaration.
This commit is contained in:
commit
232d27c306
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ impl Ordering {
|
|||
/// This method can be used to reverse a comparison:
|
||||
///
|
||||
/// ```
|
||||
/// let mut data: &mut [_] = &mut [2, 10, 5, 8];
|
||||
/// let data: &mut [_] = &mut [2, 10, 5, 8];
|
||||
///
|
||||
/// // sort the array from largest to smallest.
|
||||
/// data.sort_by(|a, b| a.cmp(b).reverse());
|
||||
|
|
Loading…
Add table
Reference in a new issue