Skip to content

Commit 0f1272a

Browse files
author
Robert-André Mauchin
committed
Convert int to string using rune()
See golang/go#32479 Fix yuin#297. Signed-off-by: Robert-André Mauchin <[email protected]>
1 parent dc2b0ca commit 0f1272a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func defaultFormat(v interface{}, f fmt.State, c rune) {
3232
buf = append(buf, "%")
3333
for i := 0; i < 128; i++ {
3434
if f.Flag(i) {
35-
buf = append(buf, string(i))
35+
buf = append(buf, string(rune(i)))
3636
}
3737
}
3838

0 commit comments

Comments
 (0)