Skip to content

Commit 376fb27

Browse files
authored
Merge pull request yuin#298 from eclipseo/fix_conversion_int_to_string
Convert int to string using rune()
2 parents dc2b0ca + 0f1272a commit 376fb27

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)