Skip to content

Update types-union doc.md #2765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update types-union.md
added indicator that this is scala3 only for those new to scala
  • Loading branch information
Randle-Lanre authored Apr 10, 2023
commit 0c8a6664382ea07f673d9b8c3c231856ee81b7f8
1 change: 1 addition & 0 deletions _overviews/scala3-book/types-union.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ num: 51
previous-page: types-intersection
next-page: types-adts-gadts
---
Scala 3 only

Used on types, the `|` operator creates a so-called _union type_.
The type `A | B` represents values that are **either** of the type `A` **or** of the type `B`.
Expand Down