Skip to content

Commit 712813e

Browse files
committed
---
yaml --- r: 33245 b: refs/heads/snap-stage3 c: 1d47c0a h: refs/heads/master i: 33243: 762c9d9 v: v3
1 parent 77f0cfb commit 712813e

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: eff4a36b3e5cfbd2b08bb5a3e8d07396dc532033
4+
refs/heads/snap-stage3: 1d47c0a830ac6d735128d3c6cd7ff3b41b874f94
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/doc/rust.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ The default meaning of the operators on standard types is given here.
16971697

16981698
#### Bitwise operators
16991699

1700-
Bitwise operators apply are, like the [arithmetic operators](#arithmetic-operators),
1700+
Bitwise operators are, like the [arithmetic operators](#arithmetic-operators),
17011701
syntactic sugar for calls to built-in traits.
17021702
This means that bitwise operators can be overridden for user-defined types.
17031703
The default meaning of the operators on standard types is given here.
@@ -1730,21 +1730,31 @@ and `&&` only when it evaluates to `true`.
17301730

17311731
#### Comparison operators
17321732

1733+
Comparison operators are, like the [arithmetic operators](#arithmetic-operators),
1734+
and [bitwise operators](#bitwise-operators),
1735+
syntactic sugar for calls to built-in traits.
1736+
This means that comparison operators can be overridden for user-defined types.
1737+
The default meaning of the operators on standard types is given here.
1738+
17331739
`==`
17341740
: Equal to.
1741+
Calls the `eq` method on the `core::cmp::Eq` trait.
17351742
`!=`
17361743
: Unequal to.
1744+
Calls the `ne` method on the `core::cmp::Eq` trait.
17371745
`<`
17381746
: Less than.
1747+
Calls the `lt` method on the `core::cmp::Ord` trait.
17391748
`>`
17401749
: Greater than.
1750+
Calls the `gt` method on the `core::cmp::Ord` trait.
17411751
`<=`
17421752
: Less than or equal.
1753+
Calls the `le` method on the `core::cmp::Ord` trait.
17431754
`>=`
17441755
: Greater than or equal.
1756+
Calls the `ge` method on the `core::cmp::Ord` trait.
17451757

1746-
The binary comparison operators can be applied to any two operands of
1747-
the same type, and produce a boolean value.
17481758

17491759
#### Type cast expressions
17501760

0 commit comments

Comments
 (0)