Kotlin / kotlin-koans

Kotlin workshop
MIT License
2.6k stars 1.41k forks source link

Update DataClasses.kt #53

Closed FreekDB closed 8 years ago

FreekDB commented 8 years ago

As a Kotlin newbie and Java developer, I was assuming the data annotation would start with an at sign (@data). Perhaps some additional information would be helpful, like for example: (this will look like this: "data class Person").

yole commented 8 years ago

The correct fix is to change "annotation" to "modifier" in the text. "data" used to be an annotation in pre-release versions of Kotlin, but now it's a modifier.

FreekDB commented 8 years ago

Dmitry Jemerov: "The correct fix is to change "annotation" to "modifier" in the text. "data" used to be an annotation in pre-release versions of Kotlin, but now it's a modifier."

svtk commented 8 years ago

@FreekDB, thanks for noticing. I've updated the text.