Skip to content

Commit

Permalink
Rollup merge of #63009 - Rosto75:master, r=matklad
Browse files Browse the repository at this point in the history
Remove redundant `mut` from variable declaration.
  • Loading branch information
Centril committed Jul 26, 2019
2 parents 0222498 + 4a2f9b6 commit 232d27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 232d27c

Please sign in to comment.