Skip to content

Commit

Permalink
Update primitives.md
Browse files Browse the repository at this point in the history
Since tuples can hold values of different types, I think it would be important to make it obvious they can do so.
  • Loading branch information
daniel-web-developer authored Jan 8, 2024
1 parent c0be629 commit 0179771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/primitives.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type because it does not contain multiple values.
### Compound Types

* Arrays like `[1, 2, 3]`
* Tuples like `(1, true)`
* Tuples like `(2, true)`

Variables can always be *type annotated*. Numbers may additionally be annotated
via a *suffix* or *by default*. Integers default to `i32` and floats to `f64`.
Expand Down

0 comments on commit 0179771

Please sign in to comment.