diff options
author | Alex P <alexeek@protonmail.com> | 2021-01-29 20:23:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 20:23:05 +0000 |
commit | e133062e353ae2e25daf50bb41f87f6896d2ae20 (patch) | |
tree | 1aa98a24b1f9b60737e579f20013205769506634 | |
parent | e4d44a37712bfde3862b0afc59bff7e1594ef60e (diff) |
fix: use fooData's values, not fooCopy's
-rw-r--r-- | kotlin.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kotlin.html.markdown b/kotlin.html.markdown index 5bbf6847..9394cc02 100644 --- a/kotlin.html.markdown +++ b/kotlin.html.markdown @@ -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) |