We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca5b489 commit 4c7f9a9Copy full SHA for 4c7f9a9
docs/docs/reference/union-types.md
@@ -45,7 +45,7 @@ val either: Password | UserName = UserName(Eve)
45
The type of `res2` is `Object & Product`, which is a supertype of
46
`UserName` and `Product`, but not the least supertype `Password |
47
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
+explicitely, as is done for the type of `either`. More precisely, the
49
typechecker will _widen_ a union type to a non-union type when
50
inferring the type of `val` or `var`, or the result type of a `def`,
51
or the argument to pass for a type parameter. The widened type of `A
0 commit comments