Skip to content

Commit

Permalink
Rollup merge of #122074 - KonradHoeffner:patch-2, r=jhpratt
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matthiaskrgr authored Mar 6, 2024
2 parents 37782da + 533add8 commit 6279ef2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6279ef2

Please sign in to comment.