Skip to content

Commit 0fd9934

Browse files
committed
Document tuple's Ord behavior as sequential
1 parent dc6db14 commit 0fd9934

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libstd/primitive_docs.rs

+4
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,10 @@ mod prim_str { }
683683
/// assert_eq!(tuple.2, 'c');
684684
/// ```
685685
///
686+
/// The sequential nature of the tuple applies to its implementations of various
687+
/// traits. For example, in `PartialOrd` and `Ord`, the elements are compared
688+
/// sequentially until the first non-equal set is found.
689+
///
686690
/// For more about tuples, see [the book](../book/ch03-02-data-types.html#the-tuple-type).
687691
///
688692
/// # Trait implementations

0 commit comments

Comments
 (0)