Skip to content

Commit 2507194

Browse files
Improve Tuple.Union docs
Co-authored-by: Nicolas Stucki <[email protected]>
1 parent 48d2349 commit 2507194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/Tuple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ object Tuple {
174174
type Split[T <: Tuple, N <: Int] = (Take[T, N], Drop[T, N])
175175

176176
/** Given a tuple `(T1, ..., Tn)`, returns a union of its
177-
* member types: `T1 | ... | Tn`.
177+
* member types: `T1 | ... | Tn`. Returns `Nothing` if the tuple is empty.
178178
*/
179179
type Union[T <: Tuple] = Fold[T, Nothing, [x, y] =>> x | y]
180180

0 commit comments

Comments
 (0)