summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/hamming.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hamming.go b/lib/hamming.go
index b2c46e9..1e53d54 100644
--- a/lib/hamming.go
+++ b/lib/hamming.go
@@ -9,7 +9,7 @@ func init() {
rand.Seed(42)
}
-func HammingDistance(a, b string) int {
+func HammingDistance(a, b []byte) int {
if len(a) != len(b) {
return -1 // Fail.
}