Skip to content

Commit 6279ef2

Browse files
authored
Rollup merge of #122074 - KonradHoeffner:patch-2, r=jhpratt
Add missing PartialOrd trait implementation doc for array Analogously to vectors and slices, this PR documents the lexicographic sorting of PartialOrd as rustdoc comment on the trait implementation of PartialOrd for arrays. Associated issue: #122073.
2 parents 37782da + 533add8 commit 6279ef2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/array/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ where
360360
}
361361
}
362362

363+
/// Implements comparison of arrays [lexicographically](Ord#lexicographical-comparison).
363364
#[stable(feature = "rust1", since = "1.0.0")]
364365
impl<T: PartialOrd, const N: usize> PartialOrd for [T; N] {
365366
#[inline]

0 commit comments

Comments
 (0)