From 21d340ea7e83e22df133c6984177d477ece3c51d Mon Sep 17 00:00:00 2001 From: Jens Klingenberg Date: Wed, 1 Mar 2023 18:14:22 +0100 Subject: [PATCH] Update 03_Map.md Replace Java forEach with Kotlin forEach --- examples/05_Collections/03_Map.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/05_Collections/03_Map.md b/examples/05_Collections/03_Map.md index d2f6908..3d9e859 100644 --- a/examples/05_Collections/03_Map.md +++ b/examples/05_Collections/03_Map.md @@ -19,7 +19,7 @@ fun updatePointsCredit(accountId: Int) { fun accountsReport() { println("EZ-Pass report:") EZPassReport.forEach { // 5 - k, v -> println("ID $k: credit $v") + (k, v) -> println("ID $k: credit $v") } }