Skip to content

Commit 3eb0955

Browse files
authored
update: reference correct argument name in Grouping doc (#4787)
Change doc to correctly say that in the `groupBy` example, the `valueTransform` argument is used to transform the values to uppercase, not the `keySelector` argument.
1 parent c6288d7 commit 3eb0955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/collection-grouping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ In the result map of `groupBy()` with two lambdas, the keys produced by `keySele
1111
of the value transformation function instead of the original elements.
1212

1313
This example illustrates using the `groupBy()` function to group the strings by their first letter, iterating through
14-
the groups on the resulting `Map` with the `for` operator, and then transforming the values to uppercase using the `keySelector` function:
14+
the groups on the resulting `Map` with the `for` operator, and then transforming the values to uppercase using the `valueTransform` function:
1515

1616
```kotlin
1717
fun main() {

0 commit comments

Comments
 (0)