commit | ead452280cd055b2ae8a7f0db5eb37a878d902f7 | [log] [tgz] |
---|---|---|
author | Robert-André Mauchin <30413512+eclipseo@users.noreply.github.com> | Wed Jul 29 06:02:43 2020 +0200 |
committer | GitHub <noreply@github.com> | Tue Jul 28 21:02:43 2020 -0700 |
tree | 21980971d1498b4f1837c51bd1b84a9050550f38 | |
parent | 4e0886370c3a67530192c6a238cff68f56c141b0 [diff] |
Convert int to string using rune() (#66) See https://github.com/golang/go/issues/32479 Fix #65. Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
diff --git a/formatter.go b/formatter.go index df61d8d..bf4b598 100644 --- a/formatter.go +++ b/formatter.go
@@ -37,7 +37,7 @@ s := "%" for i := 0; i < 128; i++ { if f.Flag(i) { - s += string(i) + s += string(rune(i)) } } if w, ok := f.Width(); ok {