From 0c8a6664382ea07f673d9b8c3c231856ee81b7f8 Mon Sep 17 00:00:00 2001 From: Kehinde Randle <19264390+Randle-Lanre@users.noreply.github.com> Date: Mon, 10 Apr 2023 16:12:15 +0100 Subject: [PATCH] Update types-union.md added indicator that this is scala3 only for those new to scala --- _overviews/scala3-book/types-union.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_overviews/scala3-book/types-union.md b/_overviews/scala3-book/types-union.md index 1636556767..60655989ee 100644 --- a/_overviews/scala3-book/types-union.md +++ b/_overviews/scala3-book/types-union.md @@ -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`.