Rollup merge of #63009 - Rosto75:master, r=matklad

Remove redundant `mut` from variable declaration.
This commit is contained in:
Mazdak Farrokhzad 2019-07-26 18:57:08 +02:00 committed by GitHub
commit 232d27c306
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());