Skip to content

Commit

Permalink
Document tuple's Ord behavior as sequential
Browse files Browse the repository at this point in the history
  • Loading branch information
czipperz committed May 27, 2019
1 parent dc6db14 commit 0fd9934
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libstd/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fd9934

Please sign in to comment.