Skip to content

Commit

Permalink
Merge pull request #5 from theplant/fix-concurrence-bytes
Browse files Browse the repository at this point in the history
fix concurrence pool buffer
  • Loading branch information
xuxinx authored Sep 21, 2023
2 parents 98e8d94 + 5fc9758 commit 143b045
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 143b045

Please sign in to comment.