File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -247,12 +247,12 @@ Many of the following operators and expressions can also be overloaded for
247
247
other types using traits in ` std::ops ` or ` std::cmp ` . These traits also
248
248
exist in ` core::ops ` and ` core::cmp ` with the same names.
249
249
250
- [ grouped ] : expressions/grouped-expr.html
251
250
[ block expressions ] : expressions/block-expr.html
252
251
[ call expressions ] : expressions/call-expr.html
253
252
[ closure expressions ] : expressions/closure-expr.html
254
253
[ enum variant ] : expressions/enum-variant-expr.html
255
254
[ field ] : expressions/field-expr.html
255
+ [ grouped ] : expressions/grouped-expr.html
256
256
[ literals ] : expressions/literal-expr.html
257
257
[ match ] : expressions/match-expr.html
258
258
[ method-call ] : expressions/method-call-expr.html
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ An expression enclosed in parentheses evaluates to the result of the enclosed
8
8
expression. Parentheses can be used to explicitly specify evaluation order
9
9
within an expression.
10
10
11
- This operator cannot be overloaded.
12
-
13
11
An example of a parenthesized expression:
14
12
15
13
``` rust
@@ -33,8 +31,8 @@ that is a member of a struct:
33
31
# }
34
32
# let a = A {f : || " The field f" };
35
33
#
36
- assert_eq! ( a . f (), " The method f" );
37
- assert_eq! ( (a . f)(), " The field f" );
34
+ assert_eq! ( a . f (), " The method f" );
35
+ assert_eq! ((a . f)(), " The field f" );
38
36
```
39
37
40
38
[ _Expression_ ] : expressions.html
You can’t perform that action at this time.
0 commit comments