Skip to content

Commit

Permalink
Merge pull request #36 from daym/patch-1
Browse files Browse the repository at this point in the history
Tuples with "..." make no sense, so don't use them
  • Loading branch information
qwandor authored Jan 4, 2023
2 parents 9f46bea + 6851a6b commit 28942d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/basic-syntax/compound-types.md
Original file line number Diff line number Diff line change
@@ -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:

Expand Down

0 comments on commit 28942d7

Please sign in to comment.