Skip to content

Commit dee7446

Browse files
Merge pull request #1514 from Suguis/unary-tuple-type
Add example of 1-ary tuple type
2 parents 076acb9 + 8768b6b commit dee7446

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)