Skip to content

Commit c59e711

Browse files
Merge pull request #2654 from aserrallerios/patch-1
Fix 'either' not to be confused with Type 'Either'
2 parents 025cfa5 + 4c7f9a9 commit c59e711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/union-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ val either: Password | UserName = UserName(Eve)
4545
The type of `res2` is `Object & Product`, which is a supertype of
4646
`UserName` and `Product`, but not the least supertype `Password |
4747
UserName`. If we want the least supertype, we have to give it
48-
explicitely, as is done for the type of `Either`. More precisely, the
48+
explicitely, as is done for the type of `either`. More precisely, the
4949
typechecker will _widen_ a union type to a non-union type when
5050
inferring the type of `val` or `var`, or the result type of a `def`,
5151
or the argument to pass for a type parameter. The widened type of `A

0 commit comments

Comments
 (0)