mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-04 05:47:53 +02:00
Merge pull request #4095 from alecks/master
[kotlin/en] fooData was mistaken for fooCopy in a comment
This commit is contained in:
@@ -180,7 +180,7 @@ fun helloWorld(val name : String) {
|
|||||||
|
|
||||||
// destructuring in "for" loop
|
// destructuring in "for" loop
|
||||||
for ((a, b, c) in listOf(fooData)) {
|
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)
|
val mapData = mapOf("a" to 1, "b" to 2)
|
||||||
|
Reference in New Issue
Block a user