Skip to content

Commit

Permalink
Fixed some typos and removed unneeded package plus gitignoring .idea
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzi Landsmann committed Oct 24, 2020
1 parent 99d8f77 commit d83d569
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions kotlin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

# Ignore Gradle build output directory
build
/.idea/
1 change: 0 additions & 1 deletion kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("ch.qos.logback:logback-classic:1.2.3")
testImplementation("io.kotest:kotest-runner-junit5:4.3.0")
testImplementation("io.kotest:kotest-property:4.3.0")
}

val test by tasks.getting(Test::class) {
Expand Down
2 changes: 1 addition & 1 deletion kotlin/src/main/kotlin/trollnumbers/ComplexTrollNumber.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package trollnumbers
* @property trollNumbers A list of troll numbers to construct the complex troll number from
* @constructor Create a complex troll number given a list of troll numbers
*/
data class ComplexTrollNumber(private val trollNumbers: List<TrollNumber> = mutableListOf()) : TrollNumber {
data class ComplexTrollNumber(private val trollNumbers: List<TrollNumber> = listOf()) : TrollNumber {

/** The numeric value of this complex troll number */
override val value: Int
Expand Down
2 changes: 1 addition & 1 deletion kotlin/src/main/kotlin/trollnumbers/SimpleTrollNumber.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package trollnumbers
*/
data class SimpleTrollNumber(override val value: Int) : TrollNumber {

/** The string representation of this complex troll number */
/** The string representation of this simple troll number */
override fun toString(): String {
return when (value) {
1 -> "one"
Expand Down

0 comments on commit d83d569

Please sign in to comment.