Skip to content

Commit

Permalink
wit: use strings.Builder on stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Sep 25, 2023
1 parent 4fe67a4 commit 74c538a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wit/wit.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func indent(s string) string {

// WIT returns the WIT representation of r.
func (r *Resolve) WIT(_ Node, _ string) string {
b := &strings.Builder{}
var b strings.Builder
for i, p := range r.Packages {
if i > 0 {
b.WriteRune('\n')
Expand Down

0 comments on commit 74c538a

Please sign in to comment.