Kotlin / kotlin-by-example

The sources of Kotlin by Example.
https://play.kotlinlang.org/byExample/overview
MIT License
460 stars 897 forks source link

Fix inconsistent code according to step description. #137

Closed anewway closed 3 years ago

anewway commented 3 years ago

There maybe some typing error because only the secondUser will print the same hashCode() with user, and the thirdUser will not.

SebastianAigner commented 3 years ago

Well spotted! Indeed, we should show off two data classes with the same contents here, otherwise it doesn't make a lot of sense with the description we've provided. Thank you for the contribution! 🎉