Skip to content

Commit c3156a8

Browse files
committed
Remove operator precedence section covered in the reference
1 parent e607d76 commit c3156a8

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/doc/grammar.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -612,30 +612,6 @@ assignment_expr : expr '=' expr ;
612612
compound_assignment_expr : expr [ arith_op | bitwise_op ] '=' expr ;
613613
```
614614

615-
#### Operator precedence
616-
617-
The precedence of Rust binary operators is ordered as follows, going from
618-
strong to weak:
619-
620-
```text
621-
* / %
622-
as
623-
+ -
624-
<< >>
625-
&
626-
^
627-
|
628-
< > <= >=
629-
== !=
630-
&&
631-
||
632-
=
633-
```
634-
635-
Operators at the same precedence level are evaluated left-to-right. [Unary
636-
operators](#unary-operator-expressions) have the same precedence level and it
637-
is stronger than any of the binary operators'.
638-
639615
### Grouped expressions
640616

641617
```antlr

0 commit comments

Comments
 (0)