Skip to content

Commit 7dd7c90

Browse files
dkrasnoffsarahhaggarty
authored andcommitted
[Documentation] Changed Request to data class in examples
1 parent e87cf18 commit 7dd7c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/jvm/java-to-kotlin-collections-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ public void analyzeLogs() {
520520
In Kotlin, use the function [`groupBy()`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/group-by.html):
521521

522522
```kotlin
523-
class Request(
523+
data class Request(
524524
val url: String,
525525
val responseCode: Int
526526
)

0 commit comments

Comments
 (0)