Skip to content

Commit

Permalink
Convert int to string using rune()
Browse files Browse the repository at this point in the history
See golang/go#32479

Fix #297.

Signed-off-by: Robert-André Mauchin <[email protected]>
  • Loading branch information
eclipseo committed Aug 4, 2020
1 parent dc2b0ca commit 0f1272a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func defaultFormat(v interface{}, f fmt.State, c rune) {
buf = append(buf, "%")
for i := 0; i < 128; i++ {
if f.Flag(i) {
buf = append(buf, string(i))
buf = append(buf, string(rune(i)))
}
}

Expand Down

0 comments on commit 0f1272a

Please sign in to comment.