Skip to content

Commit f0e5868

Browse files
author
Stjepan Glavina
committed
Fix a doctest
1 parent e365974 commit f0e5868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,9 +1256,9 @@ impl<T> [T] {
12561256
///
12571257
/// v.sort_unstable_by_key(|k| k.abs());
12581258
/// assert!(v == [1, 2, -3, 4, -5]);
1259+
/// ```
12591260
///
12601261
/// [pdqsort]: https://github.com/orlp/pdqsort
1261-
/// ```
12621262
// FIXME #40585: Mention `sort_unstable_by_key` in the documentation for `sort_by_key`.
12631263
#[unstable(feature = "sort_unstable", issue = "40585")]
12641264
#[inline]

0 commit comments

Comments
 (0)