Skip to content

Commit 4f857a9

Browse files
committed
Added example of 1-ary tuple type
1 parent a296933 commit 4f857a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types/tuple.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Its one value is also called *unit* or *the unit value*.
2727
Some examples of tuple types:
2828

2929
* `()` (unit)
30+
* `(i32, )` (1-ary tuple)
3031
* `(f64, f64)`
3132
* `(String, i32)`
3233
* `(i32, String)` (different type from the previous example)

0 commit comments

Comments
 (0)