From 2c2f221f7dd32a24b56c7b3705348bdb5447e9de Mon Sep 17 00:00:00 2001 From: Abdelalim-dev Date: Sat, 13 May 2023 09:09:13 +0100 Subject: [PATCH] fix: corrected a mistake in the for loop with range --- kotlin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin.md b/kotlin.md index 91bbc6528b1..7c6a7de7c13 100644 --- a/kotlin.md +++ b/kotlin.md @@ -324,7 +324,7 @@ if (someBoolean) { ### For Loops ```kotlin -for (i in 0..10) { } // 1 - 10 +for (i in 0..10) { } // 0 - 10 for (i in 0 until 10) // 1 - 9 (0..10).forEach { } for (i in 0 until 10 step 2) // 0, 2, 4, 6, 8