Document tuple's Ord behavior as sequential
This commit is contained in:
parent
dc6db14e1c
commit
0fd9934b1e
1 changed files with 4 additions and 0 deletions
|
@ -683,6 +683,10 @@ mod prim_str { }
|
||||||
/// assert_eq!(tuple.2, 'c');
|
/// 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).
|
/// For more about tuples, see [the book](../book/ch03-02-data-types.html#the-tuple-type).
|
||||||
///
|
///
|
||||||
/// # Trait implementations
|
/// # Trait implementations
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue