Skip to content

Commit 5435a79

Browse files
authored
Update Readme.md
1 parent 7361eaf commit 5435a79

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -742,18 +742,11 @@ public enum Direction {
742742
> Kotlin
743743

744744
```kotlin
745-
enum class Direction constructor(direction: Int) {
745+
enum class Direction(val direction: Int) {
746746
NORTH(1),
747747
SOUTH(2),
748748
WEST(3),
749749
EAST(4);
750-
751-
var direction: Int = 0
752-
private set
753-
754-
init {
755-
this.direction = direction
756-
}
757750
}
758751
```
759752
---

0 commit comments

Comments
 (0)