Skip to content

Commit

Permalink
Merge pull request #176 from flounder4130/patch-1
Browse files Browse the repository at this point in the history
Update scope-functions.md
  • Loading branch information
phplego committed Oct 12, 2020
2 parents 12a3e71 + c467ae8 commit 3bf0deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scope-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ data class Person(var name: String, var age: Int = 0, var city: String = "")

fun main() {
val adam = Person("Adam").apply {
age = 20 // тоже самое, что и this.age = 20 или adam.age = 20
age = 20 // то же самое, что и this.age = 20 или adam.age = 20
city = "London"
}
println(adam)
Expand Down

0 comments on commit 3bf0deb

Please sign in to comment.