Skip to content

Commit

Permalink
Merge pull request Kotlin#9 from AlexandrPrendota/master
Browse files Browse the repository at this point in the history
KT-22601: Update Html Builders example in Kotlin-Koans
  • Loading branch information
svtk authored Feb 12, 2018
2 parents bd341cd + e4911c2 commit ef47c50
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Kotlin Koans/Builders/Html builders/html.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package builders.html_builders

import java.util.ArrayList

open class Tag(val name: String) {
val children: MutableList<Tag> = ArrayList()
val attributes: MutableList<Attribute> = ArrayList()
val children = mutableListOf<Tag>()
val attributes = mutableListOf<Attribute>()

override fun toString(): String {
return "<$name" +
Expand Down

0 comments on commit ef47c50

Please sign in to comment.