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:
Dylan DPC
2020-05-06 16:59:04 +02:00
committed by GitHub
+1
View File
@@ -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