We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d9f50a commit 2eda013Copy full SHA for 2eda013
doc/rust.md
@@ -1705,6 +1705,22 @@ as
1705
1706
Operators at the same precedence level are evaluated left-to-right.
1707
1708
+### Grouped expressions
1709
+
1710
+An expression enclosed in parentheses evaluates to the result of the enclosed
1711
+expression. Parentheses can be used to explicitly specify evaluation order
1712
+within an expression.
1713
1714
+~~~~~~~~{.ebnf .gram}
1715
+paren_expr : '(' expr ')' ;
1716
+~~~~~~~~
1717
1718
+An example of a parenthesized expression:
1719
1720
+~~~~
1721
+let x = (2 + 3) * 4;
1722
1723
1724
### Unary copy expressions
1725
1726
~~~~~~~~{.ebnf .gram}
0 commit comments