Skip to content

Commit 7d64280

Browse files
authored
Use correct noun
Object & Product is a super type of UserName and Password (not Product)
1 parent f6e057c commit 7d64280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/new-types/union-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ val either: Password | UserName = UserName(Eve)
4040
```
4141

4242
The type of `res2` is `Object & Product`, which is a supertype of
43-
`UserName` and `Product`, but not the least supertype `Password |
43+
`UserName` and `Password`, but not the least supertype `Password |
4444
UserName`. If we want the least supertype, we have to give it
4545
explicitly, as is done for the type of `either`.
4646

0 commit comments

Comments
 (0)