Skip to content

Commit fbb4ccb

Browse files
authored
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.
2 parents 4422cb7 + 5087c1a commit fbb4ccb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/libcore/array/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ where
375375
}
376376
}
377377

378+
/// Implements comparison of arrays lexicographically.
378379
#[stable(feature = "rust1", since = "1.0.0")]
379380
impl<T: Ord, const N: usize> Ord for [T; N]
380381
where

0 commit comments

Comments
 (0)