1
Fork 0

Document tuple's Ord behavior as sequential

This commit is contained in:
Chris Gregory 2019-05-26 21:04:05 -05:00
parent dc6db14e1c
commit 0fd9934b1e

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