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.
This commit is contained in:
commit
6279ef2b4e
1 changed files with 1 additions and 0 deletions
|
@ -360,6 +360,7 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
/// Implements comparison of arrays [lexicographically](Ord#lexicographical-comparison).
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: PartialOrd, const N: usize> PartialOrd for [T; N] {
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Reference in a new issue