From 0fd9934b1e2c523cf32ee2f88450dab9feb65ee4 Mon Sep 17 00:00:00 2001 From: Chris Gregory Date: Sun, 26 May 2019 21:04:05 -0500 Subject: [PATCH] Document tuple's Ord behavior as sequential --- src/libstd/primitive_docs.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs index 24f728158c472..42b64d2b5a5ff 100644 --- a/src/libstd/primitive_docs.rs +++ b/src/libstd/primitive_docs.rs @@ -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