Skip to content

Commit

Permalink
fix concurrence pool buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxinx committed Sep 21, 2023
1 parent 98e8d94 commit 5fc9758
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ func (b *HTMLTagBuilder) MarshalHTML(ctx context.Context) (r []byte, err error)
}
buf.WriteString(fmt.Sprintf("</%s>\n", b.tag))
}
r = buf.Bytes()
r = make([]byte, buf.Len())
copy(r, buf.Bytes())
return
}

Expand Down

0 comments on commit 5fc9758

Please sign in to comment.