Skip to content

Commit f3a619a

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 fa6c3c3 + 533add8 commit f3a619a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/array/mod.rs

+1
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)