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.
2 parents 0222498 + 4a2f9b6 commit 232d27cCopy full SHA for 232d27c
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