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:
Mazdak Farrokhzad 2019-06-08 03:33:54 +02:00 committed by GitHub
commit 2a9bcbf9a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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