Skip to content

Commit 4797164

Browse files
authored
Desugare enums: its... instead of an companion object
1 parent f9a9466 commit 4797164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/types-adts-gadts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ It is only safe to return an `Int` in the first case, since we know from pattern
168168

169169

170170
## Desugaring Enumerations
171-
_Conceptually_, enums can be thought of as defining a sealed class together with an companion object.
171+
_Conceptually_, enums can be thought of as defining a sealed class together with its companion object.
172172
Let’s look at the desugaring of our `Color` enum above:
173173
```scala
174174
sealed abstract class Color(val rgb: Int) extends scala.reflect.Enum

0 commit comments

Comments
 (0)