Skip to content

Commit

Permalink
chore: Changing fmt.Fprintf to fmt.Fprint when there is no formatting…
Browse files Browse the repository at this point in the history
… required (#156)

Signed-off-by: Sasha Melentyev <sasha@m8.ru>
  • Loading branch information
sashamelentyev authored Dec 13, 2024
1 parent 5c9d4a6 commit 1782cdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion peg.peg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tree/peg.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (node *node32) print(w io.Writer, pretty bool, buffer string) {
print = func(node *node32, depth int) {
for node != nil {
for c := 0; c < depth; c++ {
fmt.Fprintf(w, " ")
fmt.Fprint(w, " ")
}
rule := rul3s[node.pegRule]
quote := strconv.Quote(string(([]rune(buffer)[node.begin:node.end])))
Expand Down

0 comments on commit 1782cdc

Please sign in to comment.