Skip to content

Commit 4a51300

Browse files
oderskysmarter
andauthored
Update docs/_docs/reference/new-types/union-types.md
Co-authored-by: Guillaume Martres <[email protected]>
1 parent b2f2db6 commit 4a51300

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
@@ -23,7 +23,7 @@ Union types are duals of intersection types. `|` is _commutative_:
2323
`A | B` is the same type as `B | A`.
2424

2525
The compiler will assign a union type to an expression only if such a
26-
type is explicitly given or the common supertype of all alternatives is [transparent](../other-new-features/transparent-traits.md).
26+
type is explicitly given or if the common supertype of all alternatives is [transparent](../other-new-features/transparent-traits.md).
2727

2828

2929
This can be seen in the following [REPL](https://docs.scala-lang.org/overviews/repl/overview.html) transcript:

0 commit comments

Comments
 (0)