Skip to content

Commit ead4522

Browse files
authored
Convert int to string using rune() (#66)
See golang/go#32479 Fix #65. Signed-off-by: Robert-André Mauchin <[email protected]>
1 parent 4e08863 commit ead4522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formatter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (fo formatter) passThrough(f fmt.State, c rune) {
3737
s := "%"
3838
for i := 0; i < 128; i++ {
3939
if f.Flag(i) {
40-
s += string(i)
40+
s += string(rune(i))
4141
}
4242
}
4343
if w, ok := f.Width(); ok {

0 commit comments

Comments
 (0)