1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-05 14:27:51 +02:00

fix: use fooData's values, not fooCopy's

This commit is contained in:
Alex P
2021-01-29 20:23:05 +00:00
committed by GitHub
parent e4d44a3771
commit e133062e35

View File

@@ -180,7 +180,7 @@ fun helloWorld(val name : String) {
// destructuring in "for" loop
for ((a, b, c) in listOf(fooData)) {
println("$a $b $c") // => 1 100 4
println("$a $b $c") // => 1 2 4
}
val mapData = mapOf("a" to 1, "b" to 2)