use Sprint instead of Sprintf
This commit is contained in:
parent
16cf31e9e9
commit
7784031254
@ -45,7 +45,9 @@ func (dp *debugParser) logf(ps *State, result *Result, format string, args ...in
|
|||||||
buf.WriteString(fmt.Sprintf("%-15s", ps.Preview(15)))
|
buf.WriteString(fmt.Sprintf("%-15s", ps.Preview(15)))
|
||||||
buf.WriteString(" | ")
|
buf.WriteString(" | ")
|
||||||
buf.WriteString(strings.Repeat(" ", len(activeParsers)-1))
|
buf.WriteString(strings.Repeat(" ", len(activeParsers)-1))
|
||||||
buf.WriteString(fmt.Sprint(append([]interface{}{format}, args...)...))
|
//buf.WriteString(fmt.Sprintf(format, args...))
|
||||||
|
buf.WriteString(format)
|
||||||
|
buf.WriteString(fmt.Sprint(args...))
|
||||||
if ps.Errored() {
|
if ps.Errored() {
|
||||||
buf.WriteString(fmt.Sprintf(" did not find %s", ps.Error.expected))
|
buf.WriteString(fmt.Sprintf(" did not find %s", ps.Error.expected))
|
||||||
} else if result != nil {
|
} else if result != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user