diff options
| author | Carol Nichols <carol.nichols@gmail.com> | 2015-05-05 22:32:38 -0400 |
|---|---|---|
| committer | Carol Nichols <carol.nichols@gmail.com> | 2015-05-10 22:47:39 -0400 |
| commit | c3156a8ff434060403a1743cff780d8e80a53db2 (patch) | |
| tree | c711ca5625c0e1256b5a8cfc34dcc05d6e67f80d | |
| parent | e607d76564cf01247b247e0e83c7abdc4bb1fbee (diff) | |
| download | rust-c3156a8ff434060403a1743cff780d8e80a53db2.tar.gz rust-c3156a8ff434060403a1743cff780d8e80a53db2.zip | |
Remove operator precedence section covered in the reference
| -rw-r--r-- | src/doc/grammar.md | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/doc/grammar.md b/src/doc/grammar.md index a752ce47b1b..3cecc28b803 100644 --- a/src/doc/grammar.md +++ b/src/doc/grammar.md @@ -612,30 +612,6 @@ assignment_expr : expr '=' expr ; compound_assignment_expr : expr [ arith_op | bitwise_op ] '=' expr ; ``` -#### Operator precedence - -The precedence of Rust binary operators is ordered as follows, going from -strong to weak: - -```text -* / % -as -+ - -<< >> -& -^ -| -< > <= >= -== != -&& -|| -= -``` - -Operators at the same precedence level are evaluated left-to-right. [Unary -operators](#unary-operator-expressions) have the same precedence level and it -is stronger than any of the binary operators'. - ### Grouped expressions ```antlr |
