From e133062e353ae2e25daf50bb41f87f6896d2ae20 Mon Sep 17 00:00:00 2001 From: Alex P Date: Fri, 29 Jan 2021 20:23:05 +0000 Subject: fix: use fooData's values, not fooCopy's --- kotlin.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kotlin.html.markdown') 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) -- cgit v1.2.3 From 2ff50ccd2c76ec8abda9e3bfc892c2a5cf64fe14 Mon Sep 17 00:00:00 2001 From: Tentacles <77739665+tentacleuno@users.noreply.github.com> Date: Thu, 4 Feb 2021 18:25:10 +0000 Subject: Update kotlin.html.markdown --- kotlin.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kotlin.html.markdown') diff --git a/kotlin.html.markdown b/kotlin.html.markdown index 9394cc02..12008074 100644 --- a/kotlin.html.markdown +++ b/kotlin.html.markdown @@ -426,7 +426,7 @@ data class Counter(var value: Int) { operator fun invoke() = println("The value of the counter is $value") } -/* You can also overload operators through an extension methods */ +/* You can also overload operators through extension methods */ // overload -Counter operator fun Counter.unaryMinus() = Counter(-this.value) -- cgit v1.2.3