Skip to content

Commit

Permalink
Unrolled build for rust-lang#122074
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer committed Mar 7, 2024
2 parents d03b986 + 533add8 commit 81160b7
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 81160b7

Please sign in to comment.