tracks/kotlin/exercises/hamming/.meta/src/reference/kotlin/Hamming.kt in trackler-2.2.1.52 vs tracks/kotlin/exercises/hamming/.meta/src/reference/kotlin/Hamming.kt in trackler-2.2.1.53

- old
+ new

@@ -1,8 +1,8 @@ object Hamming { fun compute(leftStrand: String, rightStrand: String): Int { - require(leftStrand.length == rightStrand.length, {"leftStrand and rightStrand must be of equal length."}) + require(leftStrand.length == rightStrand.length, {"left and right strands must be of equal length."}) val commonPairs = leftStrand.zip(rightStrand) return commonPairs.count { it.first != it.second } } }