Skip to content

Commit 232d27c

Browse files
authored
Rollup merge of #63009 - Rosto75:master, r=matklad
Remove redundant `mut` from variable declaration.
2 parents 0222498 + 4a2f9b6 commit 232d27c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/cmp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ impl Ordering {
319319
/// This method can be used to reverse a comparison:
320320
///
321321
/// ```
322-
/// let mut data: &mut [_] = &mut [2, 10, 5, 8];
322+
/// let data: &mut [_] = &mut [2, 10, 5, 8];
323323
///
324324
/// // sort the array from largest to smallest.
325325
/// data.sort_by(|a, b| a.cmp(b).reverse());

0 commit comments

Comments
 (0)