Skip to content

Commit 72c221b

Browse files
committed
some more fix & add original document
1 parent e18f66d commit 72c221b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

1.6/ja/book/syntax-index.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,22 @@
286286

287287
<!-- Various things involving parens and tuples -->
288288

289+
<!-- * `()`: empty tuple (*a.k.a.* unit), both literal and type. -->
290+
<!-- * `(expr)`: parenthesized expression. -->
291+
<!-- * `(expr,)`: single-element tuple expression. See [Primitive Types (Tuples)]. -->
292+
<!-- * `(type,)`: single-element tuple type. See [Primitive Types (Tuples)]. -->
293+
<!-- * `(expr, …)`: tuple expression. See [Primitive Types (Tuples)]. -->
294+
<!-- * `(type, …)`: tuple type. See [Primitive Types (Tuples)]. -->
295+
<!-- * `expr(expr, …)`: function call expression. Also used to initialize tuple `struct`s and tuple `enum` variants. See [Functions]. -->
296+
<!-- * `ident!(…)`, `ident!{…}`, `ident![…]`: macro invocation. See [Macros]. -->
297+
<!-- * `expr.0`, `expr.1`, …: tuple indexing. See [Primitive Types (Tuple Indexing)]. -->
289298
* `()`: 空タプル(*あるいは* ユニット)の、リテラルと型両方。
290299
* `(expr)`: 括弧付きの式。
291300
* `(expr,)`: 1要素タプルの式。 [プリミティブ型 (タプル)] 参照。
292301
* `(type,)`: 1要素タプルの型。 [プリミティブ型 (タプル)] 参照。
293302
* `(expr, …)`: タプル式。 [プリミティブ型 (タプル)] 参照。
294303
* `(type, …)`: タプル型。 [プリミティブ型 (タプル)] 参照。
295-
* `expr(expr, …)`: 関数呼び出し式。また、 タプル `struct` 、 タプル `enum` を初期化するのにも使われる[関数] 参照。
304+
* `expr(expr, …)`: 関数呼び出し式。また、 タプル `struct` 、 タプル `enum` のヴァリアントを初期化するのにも使われる[関数] 参照。
296305
* `ident!(…)`, `ident!{…}`, `ident![…]`: マクロの起動。 [マクロ] 参照。
297306
* `expr.0`, `expr.1`, …: タプルのインデックス。 [プリミティブ型 (タプルのインデックス)] 参照。
298307

0 commit comments

Comments
 (0)