Skip to content

Commit 8c67691

Browse files
authored
Merge pull request #4 from tegonal/doc-enum
doc(enum): typo
2 parents d5bdeee + a851af0 commit 8c67691

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/docs/reference/enums/enums.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ If you want to use the Scala-defined enums as Java enums, you can do so by exten
9595
enum Color extends java.lang.Enum[Color] { case Red, Green, Blue }
9696
```
9797

98-
The type parameter comes from the Java enum [definition](https://docs.oracle.com/javase/8/docs/api/index.html?java/lang/Enum.html) and should be the same as the type of the enum. There is no need to provide constructor arguments (as defined in the API docs) to `java.lang.Enum` when extending it – the compiler will generate them automatically.
98+
The type parameter comes from the Java enum [definition](https://docs.oracle.com/javase/8/docs/api/index.html?java/lang/Enum.html) and should be the same as the type of the enum.
99+
There is no need to provide constructor arguments (as defined in the Java API docs) to `java.lang.Enum` when extending it – the compiler will generate them automatically.
99100

100-
After defining `Color` like that, you can use like you would a Java enum:
101+
After defining `Color` like that, you can use it like you would a Java enum:
101102

102103
```scala
103104
scala> Color.Red.compareTo(Color.Green)

0 commit comments

Comments
 (0)