We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8719c79 commit d3b0267Copy full SHA for d3b0267
docs/topics/classes.md
@@ -354,7 +354,7 @@ class Person(val name: String, var age: Int) {
354
// Secondary constructor that takes age as a
355
// String and converts it to an Int
356
constructor(name: String, age: String) : this(name, age.toIntOrNull() ?: 0) {
357
- println("$name created with converted age: $age")
+ println("$name created with converted age: ${this.age}")
358
}
359
360
0 commit comments