Skip to content

Commit

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

Fix #65.

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
  • Loading branch information
eclipseo committed Jul 29, 2020
1 parent 4e08863 commit ead4522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formatter.go
Expand Up @@ -37,7 +37,7 @@ func (fo formatter) passThrough(f fmt.State, c rune) {
s := "%"
for i := 0; i < 128; i++ {
if f.Flag(i) {
s += string(i)
s += string(rune(i))
}
}
if w, ok := f.Width(); ok {
Expand Down

0 comments on commit ead4522

Please sign in to comment.