summaryrefslogtreecommitdiff
path: root/go/luhn/luhn.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/luhn/luhn.go')
-rw-r--r--go/luhn/luhn.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/luhn/luhn.go b/go/luhn/luhn.go
index c11cde3..5da01f7 100644
--- a/go/luhn/luhn.go
+++ b/go/luhn/luhn.go
@@ -38,5 +38,5 @@ func Valid(s string) bool {
func AddCheck(s string) string {
sum := chksum(normalize(s + "9"))
n := 9 - sum%10
- return s + string('0'+n)
+ return s + string('0'+rune(n))
}