Browse Source

gofmt

master
Blaine Motsinger 1 year ago
parent
commit
903e3858bd
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      go/hamming/hamming.go

+ 1
- 1
go/hamming/hamming.go View File

@@ -10,7 +10,7 @@ func Distance(a, b string) (int, error) {
if len(a) != len(b) {
// since 0 difference would indicate an exact string,
// -1 indicates different length strings
return -1, errors.New("only equal length strings can be compared")
return -1, errors.New("only equal length strings can be compared")
}

var totalDifferences int

Loading…
Cancel
Save