Skip to content

Commit c3bfa67

Browse files
authored
Merge pull request #1514 from Suguis/unary-tuple-type
Add example of 1-ary tuple type
2 parents a296933 + 4813444 commit c3bfa67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types/tuple.md

+1
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)