Skip to content

Commit

Permalink
Rollup merge of #71944 - ldm0:arrordhint, r=sfackler
Browse files Browse the repository at this point in the history
Add comment for `Ord` implementation for array

Corresponding to `Ord` implementation for slice. It hints new comer the rule of comparing two arrays.
  • Loading branch information
Dylan-DPC authored May 6, 2020
2 parents 4422cb7 + 5087c1a commit fbb4ccb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbb4ccb

Please sign in to comment.