Skip to content

Commit 144f5dc

Browse files
Ryuheeeeisarahhaggarty
authored andcommitted
docs(kotlin-tour-classes.md): remove unused variables from copy example
1 parent f8145dd commit 144f5dc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/topics/tour/kotlin-tour-classes.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ data class User(val name: String, val id: Int)
227227
fun main() {
228228
//sampleStart
229229
val user = User("Alex", 1)
230-
val secondUser = User("Alex", 1)
231-
val thirdUser = User("Max", 2)
232230

233231
// Creates an exact copy of user
234232
println(user.copy())

0 commit comments

Comments
 (0)