diff --git a/src/appendix-02-operators.md b/src/appendix-02-operators.md index 6c8b8d89db..5309a257bc 100644 --- a/src/appendix-02-operators.md +++ b/src/appendix-02-operators.md @@ -37,7 +37,9 @@ overload that operator is listed. | `-` | `expr - expr` | Arithmetic subtraction | `Sub` | | `-=` | `var -= expr` | Arithmetic subtraction and assignment | `SubAssign` | | `->` | `fn(...) -> type`, |...| -> type | Function and closure return type | | -| `.` | `expr.ident` | Member access | | +| `.` | `expr.ident` | Field access | | +| `.` | `expr.ident(expr, ...)` | Method call | | +| `.` | `expr.0`, `expr.1`, etc. | Tuple indexing | | | `..` | `..`, `expr..`, `..expr`, `expr..expr` | Right-exclusive range literal | `PartialOrd` | | `..=` | `..=expr`, `expr..=expr` | Right-inclusive range literal | `PartialOrd` | | `..` | `..expr` | Struct literal update syntax | | @@ -168,9 +170,9 @@ Table B-7 shows symbols that create comments. | `/*!...*/` | Inner block doc comment | | `/**...*/` | Outer block doc comment | -Table B-8 shows symbols that appear in the context of using tuples. +Table B-8 shows the contexts in which parentheses are used. -Table B-8: Tuples +Table B-8: Parentheses | Symbol | Explanation | | ------------------------ | ------------------------------------------------------------------------------------------- | @@ -181,7 +183,6 @@ Table B-8 shows symbols that appear in the context of using tuples. | `(expr, ...)` | Tuple expression | | `(type, ...)` | Tuple type | | `expr(expr, ...)` | Function call expression; also used to initialize tuple `struct`s and tuple `enum` variants | -| `expr.0`, `expr.1`, etc. | Tuple indexing | Table B-9 shows the contexts in which curly braces are used.