You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/enums/desugarEnums.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Scala's other language features. As such, enums in Scala are
8
8
convenient _syntactic sugar_, but they are not essential to understand
9
9
Scala's core.
10
10
11
-
We now explain the expansion of enums is explained in detail. First,
11
+
We now explain the expansion of enums in detail. First,
12
12
some terminology and notational conventions:
13
13
14
14
- We use `E` as a name of an enum class, and `C` as a name of an enum case that appears in the companion object of `E`.
@@ -20,7 +20,7 @@ some terminology and notational conventions:
20
20
-_Simple cases_ are cases of a non-generic enum class that have neither parameters nor an extends clause or body. That is, they consist of a name only.
21
21
-_Value cases_ are all cases that do not have a parameter section but that do have a (possibly generated) extends clause and/or a body.
22
22
23
-
Simple cases and value cases are called collectively _singleton cases_.
23
+
Simple cases and value cases are collectively called_singleton cases_.
24
24
25
25
The desugaring rules imply that class cases are mapped to case classes, and singleton cases are mapped to `val` definitions.
0 commit comments