We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f791b8 commit a2829d5Copy full SHA for a2829d5
_moreReadMe/kotlin_basics/README.md
@@ -179,7 +179,7 @@ We can rename `it` to anything, for eg. thing
179
```kotlin
180
things.forEach { thing -> println(thing) } // we lose index by this method
181
182
-things.forEachIndexed { index, thing -> println("$thing is at index #index") } // way to use index
+things.forEachIndexed { index, thing -> println("$thing is at index $index") } // way to use index
183
```
184
185
if, when and forEach can also be used as expression
0 commit comments