We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mut
1 parent 1a56336 commit 4a2f9b6Copy full SHA for 4a2f9b6
src/libcore/cmp.rs
@@ -319,7 +319,7 @@ impl Ordering {
319
/// This method can be used to reverse a comparison:
320
///
321
/// ```
322
- /// let mut data: &mut [_] = &mut [2, 10, 5, 8];
+ /// let data: &mut [_] = &mut [2, 10, 5, 8];
323
324
/// // sort the array from largest to smallest.
325
/// data.sort_by(|a, b| a.cmp(b).reverse());
0 commit comments