Skip to content

Commit 1beba1f

Browse files
authored
Rollup merge of rust-lang#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: rust-lang#122073.
2 parents 3b7d1c3 + 0999f9c commit 1beba1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)