Skip to content

Commit

Permalink
Remove redundant mut from variable declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-rozanski committed Jul 26, 2019
1 parent 1a56336 commit 4a2f9b6
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 4a2f9b6

Please sign in to comment.