]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/reference/src/expressions/grouped-expr.md
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / doc / reference / src / expressions / grouped-expr.md
index 8e57cdbb7bd4cbc288149ec26434c1147d7695d5..096b36c823c92f97c85459f2e0e00ea231e93dc2 100644 (file)
@@ -4,9 +4,8 @@
 > _GroupedExpression_ :\
 > &nbsp;&nbsp; `(` [_InnerAttribute_]<sup>\*</sup> [_Expression_] `)`
 
-An expression enclosed in parentheses evaluates to the result of the enclosed
-expression. Parentheses can be used to explicitly specify evaluation order
-within an expression.
+An expression enclosed in parentheses evaluates to the result of the enclosed expression.
+Parentheses can be used to explicitly specify evaluation order within an expression.
 
 An example of a parenthesized expression:
 
@@ -17,8 +16,7 @@ assert_eq!(x, 14);
 assert_eq!(y, 20);
 ```
 
-An example of a necessary use of parentheses is when calling a function pointer
-that is a member of a struct:
+An example of a necessary use of parentheses is when calling a function pointer that is a member of a struct:
 
 ```rust
 # struct A {
@@ -37,9 +35,7 @@ assert_eq!((a.f)(), "The field f");
 
 ## Group expression attributes
 
-[Inner attributes] are allowed directly after the opening parenthesis of a
-group expression in the same expression contexts as [attributes on block
-expressions].
+[Inner attributes] are allowed directly after the opening parenthesis of a group expression in the same expression contexts as [attributes on block expressions].
 
 [Inner attributes]: ../attributes.md
 [_Expression_]: ../expressions.md