Skip to content

Commit a2829d5

Browse files
Update README.md
1 parent 4f791b8 commit a2829d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_moreReadMe/kotlin_basics/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ We can rename `it` to anything, for eg. thing
179179
```kotlin
180180
things.forEach { thing -> println(thing) } // we lose index by this method
181181

182-
things.forEachIndexed { index, thing -> println("$thing is at index #index") } // way to use index
182+
things.forEachIndexed { index, thing -> println("$thing is at index $index") } // way to use index
183183
```
184184

185185
if, when and forEach can also be used as expression

0 commit comments

Comments
 (0)