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