@@ -37,7 +37,9 @@ overload that operator is listed.
37
37
| ` - ` | ` expr - expr ` | Arithmetic subtraction | ` Sub ` |
38
38
| ` -= ` | ` var -= expr ` | Arithmetic subtraction and assignment | ` SubAssign ` |
39
39
| ` -> ` | ` fn(...) -> type ` , <code >&vert ; ...&vert ; -> type</code > | Function and closure return type | |
40
- | ` . ` | ` expr.ident ` | Member access | |
40
+ | ` . ` | ` expr.ident ` | Field access | |
41
+ | ` . ` | ` expr.ident(expr, ...) ` | Method call | |
42
+ | ` . ` | ` expr.0 ` , ` expr.1 ` , etc. | Tuple indexing | |
41
43
| ` .. ` | ` .. ` , ` expr.. ` , ` ..expr ` , ` expr..expr ` | Right-exclusive range literal | ` PartialOrd ` |
42
44
| ` ..= ` | ` ..=expr ` , ` expr..=expr ` | Right-inclusive range literal | ` PartialOrd ` |
43
45
| ` .. ` | ` ..expr ` | Struct literal update syntax | |
@@ -168,9 +170,9 @@ Table B-7 shows symbols that create comments.
168
170
| ` /*!...*/ ` | Inner block doc comment |
169
171
| ` /**...*/ ` | Outer block doc comment |
170
172
171
- Table B-8 shows symbols that appear in the context of using tuples .
173
+ Table B-8 shows the contexts in which parentheses are used .
172
174
173
- <span class =" caption " >Table B-8: Tuples </span >
175
+ <span class =" caption " >Table B-8: Parentheses </span >
174
176
175
177
| Symbol | Explanation |
176
178
| ------------------------ | ------------------------------------------------------------------------------------------- |
@@ -181,7 +183,6 @@ Table B-8 shows symbols that appear in the context of using tuples.
181
183
| ` (expr, ...) ` | Tuple expression |
182
184
| ` (type, ...) ` | Tuple type |
183
185
| ` expr(expr, ...) ` | Function call expression; also used to initialize tuple ` struct ` s and tuple ` enum ` variants |
184
- | ` expr.0 ` , ` expr.1 ` , etc. | Tuple indexing |
185
186
186
187
Table B-9 shows the contexts in which curly braces are used.
187
188
0 commit comments