Skip to content

Commit 1c8b693

Browse files
committed
update typo in docs to scala.reflect.Enum
1 parent 3e23046 commit 1c8b693

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/enums/desugarEnums.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ map into `case class`es or `val`s.
3434
```scala
3535
enum E ... { <defs> <cases> }
3636
```
37-
expands to a `sealed abstract` class that extends the `scala.Enum` trait and
37+
expands to a `sealed abstract` class that extends the `scala.reflect.Enum` trait and
3838
an associated companion object that contains the defined cases, expanded according
3939
to rules (2 - 8). The enum class starts with a compiler-generated import that imports
4040
the names `<caseIds>` of all cases so that they can be used without prefix in the class.
4141
```scala
42-
sealed abstract class E ... extends <parents> with scala.Enum {
42+
sealed abstract class E ... extends <parents> with scala.reflect.Enum {
4343
import E.{ <caseIds> }
4444
<defs>
4545
}

0 commit comments

Comments
 (0)