Skip to content

Commit ea23a19

Browse files
committed
Small fixes in docs
1 parent 8aa24ac commit ea23a19

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/docs/reference/enums/desugarEnums.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,15 @@ map into case classes or vals.
9393

9494
This result is then further rewritten with rule (8).
9595

96-
6. If `E` is an enum with type parameters `Ts`, a class case with neither type parameters nor
97-
an extends clause
96+
6. If `E` is an enum with type parameters `Ts`, a class case with neither type parameters nor an extends clause
9897

9998
case C <value-params>
10099

101100
expands to
102101

103102
case C[Ts] <value-params> extends E[Ts]
104103

105-
This result is then further rewritten with rule (8). For class cases that have type parameters
106-
themselves, an extends clause needs to be given explicitly.
104+
This result is then further rewritten with rule (8). For class cases that have type parameters themselves, an extends clause needs to be given explicitly.
107105

108106
7. A value case
109107

@@ -159,7 +157,7 @@ the following additional members.
159157
- A method `enumValues` which returns an `Iterable[E]` of all singleton case
160158
values in `E`, in the order of their definitions.
161159

162-
Companion objects that contain at least one simple case define in addition:
160+
Companion objects of enumerations that contain at least one simple case define in addition:
163161

164162
- A private method `$new` which defines a new simple case value with given
165163
ordinal number and name. This method can be thought as being defined as
@@ -182,5 +180,5 @@ this object or its members via `this` or a simple identifier is also illegal. Th
182180
### Other Rules
183181

184182
A normal case class which is not produced from an enum case is not allowed to extend
185-
`scala.Enum`. This ensures that the only cases of an anum are the ones that are
183+
`scala.Enum`. This ensures that the only cases of an enum are the ones that are
186184
explictly declared in it.

0 commit comments

Comments
 (0)