Skip to content

Commit

Permalink
Show different tuple sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeisler authored and NoahDragon committed Jul 11, 2023
1 parent 8730662 commit 5ed51b8
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 5ed51b8

Please sign in to comment.