Skip to content

Commit 4a2f9b6

Browse files
Remove redundant mut from variable declaration.
1 parent 1a56336 commit 4a2f9b6

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)