From 6851a6b533a24d29bb559ecbb8b1b7a7df42b1bf Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Wed, 28 Dec 2022 15:41:08 +0100 Subject: [PATCH] Show different tuple sizes --- src/basic-syntax/compound-types.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/basic-syntax/compound-types.md b/src/basic-syntax/compound-types.md index 7775e494..bf534596 100644 --- a/src/basic-syntax/compound-types.md +++ b/src/basic-syntax/compound-types.md @@ -1,9 +1,9 @@ # Compound Types -| | Types | Literals | -|--------|---------------------|--------------------------| -| Arrays | `[T; N]` | `[20, 30, 40]`, `[0; 3]` | -| Tuples | `(T1, T2, T3)` | `('x', 1.2, 0)` | +| | Types | Literals | +|--------|-------------------------------|-----------------------------------| +| Arrays | `[T; N]` | `[20, 30, 40]`, `[0; 3]` | +| Tuples | `()`, `(T,)`, `(T1, T2)`, ... | `()`, `('x',)`, `('x', 1.2)`, ... | Array assignment and access: