Skip to content

Commit 9ae7b6f

Browse files
committed
Adjustments after review
1 parent fc95547 commit 9ae7b6f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/expressions.md

+1-1
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

+2-4
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)