Rollup merge of #61223 - czipperz:tuple-ord-document-ordering, r=oli-obk
Document tuple's Ord behavior as sequential Partially closing #50727
This commit is contained in:
commit
2a9bcbf9a9
1 changed files with 4 additions and 0 deletions
|
@ -683,6 +683,10 @@ mod prim_str { }
|
|||
/// assert_eq!(tuple.2, 'c');
|
||||
/// ```
|
||||
///
|
||||
/// The sequential nature of the tuple applies to its implementations of various
|
||||
/// traits. For example, in `PartialOrd` and `Ord`, the elements are compared
|
||||
/// sequentially until the first non-equal set is found.
|
||||
///
|
||||
/// For more about tuples, see [the book](../book/ch03-02-data-types.html#the-tuple-type).
|
||||
///
|
||||
/// # Trait implementations
|
||||
|
|
Loading…
Reference in a new issue