Skip to content

Commit 5fafde4

Browse files
committed
---
yaml --- r: 35857 b: refs/heads/try2 c: 1d47c0a h: refs/heads/master i: 35855: 725177d v: v3
1 parent f9da565 commit 5fafde4

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: eff4a36b3e5cfbd2b08bb5a3e8d07396dc532033
8+
refs/heads/try2: 1d47c0a830ac6d735128d3c6cd7ff3b41b874f94
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/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)