There was an error while loading. Please reload this page.
2 parents 7361eaf + 5435a79 commit 85a781aCopy full SHA for 85a781a
README.md
@@ -742,18 +742,11 @@ public enum Direction {
742
> Kotlin
743
744
```kotlin
745
-enum class Direction constructor(direction: Int) {
+enum class Direction(val direction: Int) {
746
NORTH(1),
747
SOUTH(2),
748
WEST(3),
749
EAST(4);
750
-
751
- var direction: Int = 0
752
- private set
753
754
- init {
755
- this.direction = direction
756
- }
757
}
758
```
759
---
0 commit comments