Skip to content

Commit 28942d7

Browse files
authored
Merge pull request #36 from daym/patch-1
Tuples with "..." make no sense, so don't use them
2 parents 9f46bea + 6851a6b commit 28942d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/basic-syntax/compound-types.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Compound Types
22

3-
| | Types | Literals |
4-
|--------|---------------------|--------------------------|
5-
| Arrays | `[T; N]` | `[20, 30, 40]`, `[0; 3]` |
6-
| Tuples | `(T1, T2, T3, ...)` | `('x', 1.2, 0)` |
3+
| | Types | Literals |
4+
|--------|-------------------------------|-----------------------------------|
5+
| Arrays | `[T; N]` | `[20, 30, 40]`, `[0; 3]` |
6+
| Tuples | `()`, `(T,)`, `(T1, T2)`, ... | `()`, `('x',)`, `('x', 1.2)`, ... |
77

88
Array assignment and access:
99

0 commit comments

Comments
 (0)