diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-06 16:59:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-06 16:59:04 +0200 |
| commit | fbb4ccbee61dc95afcbcd05fd63053e2980edf97 (patch) | |
| tree | 3ccc77fe3cc8fd490bb01d89e2d94815a9affec0 /src | |
| parent | 4422cb73b66b33dec167900ae52f11dc491d7f72 (diff) | |
| parent | 5087c1ad2bdcf478d62cbe90fc20dd9ff0ffd207 (diff) | |
| download | rust-fbb4ccbee61dc95afcbcd05fd63053e2980edf97.tar.gz rust-fbb4ccbee61dc95afcbcd05fd63053e2980edf97.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/array/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/array/mod.rs b/src/libcore/array/mod.rs index 937451274cf..549228ffffa 100644 --- a/src/libcore/array/mod.rs +++ b/src/libcore/array/mod.rs @@ -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 |
