mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-02 00:07:42 +03:00
Rollup merge of #71944 - ldm0:arrordhint, r=sfackler
Add comment for `Ord` implementation for array Corresponding to `Ord` implementation for slice. It hints new comer the rule of comparing two arrays.
This commit is contained in:
@@ -375,6 +375,7 @@ fn ne(&self, other: &&'b mut [B]) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
/// Implements comparison of arrays lexicographically.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: Ord, const N: usize> Ord for [T; N]
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user