diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-08 03:33:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-08 03:33:54 +0200 |
| commit | 2a9bcbf9a9e1641288a2024de4843382f4ff4c2d (patch) | |
| tree | 6dc7bb6bef15ea5ede203aab673277ad84b8296c /src/libstd | |
| parent | d132f544f9d74e3cc047ef211e57eae60b78e5c5 (diff) | |
| parent | 0fd9934b1e2c523cf32ee2f88450dab9feb65ee4 (diff) | |
| download | rust-2a9bcbf9a9e1641288a2024de4843382f4ff4c2d.tar.gz rust-2a9bcbf9a9e1641288a2024de4843382f4ff4c2d.zip | |
Rollup merge of #61223 - czipperz:tuple-ord-document-ordering, r=oli-obk
Document tuple's Ord behavior as sequential Partially closing #50727
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/primitive_docs.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs index 24f728158c4..42b64d2b5a5 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 |
