Skip to content

Commit fd0c4c4

Browse files
committed
Adjustments after review
1 parent fc95547 commit fd0c4c4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ Many of the following operators and expressions can also be overloaded for
247247
other types using traits in `std::ops` or `std::cmp`. These traits also
248248
exist in `core::ops` and `core::cmp` with the same names.
249249

250-
[grouped]: expressions/grouped-expr.html
251250
[block expressions]: expressions/block-expr.html
252251
[call expressions]: expressions/call-expr.html
253252
[closure expressions]: expressions/closure-expr.html
254253
[enum variant]: expressions/enum-variant-expr.html
255254
[field]: expressions/field-expr.html
255+
[grouped]: expressions/grouped-expr.html
256256
[literals]: expressions/literal-expr.html
257257
[match]: expressions/match-expr.html
258258
[method-call]: expressions/method-call-expr.html

src/expressions/grouped-expr.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ An expression enclosed in parentheses evaluates to the result of the enclosed
88
expression. Parentheses can be used to explicitly specify evaluation order
99
within an expression.
1010

11-
This operator cannot be overloaded.
12-
1311
An example of a parenthesized expression:
1412

1513
```rust
@@ -33,8 +31,8 @@ that is a member of a struct:
3331
# }
3432
# let a = A{f: || "The field f"};
3533
#
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");
3836
```
3937

4038
[_Expression_]: expressions.html

0 commit comments

Comments
 (0)