We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c0f12 commit 885c3d2Copy full SHA for 885c3d2
stringbuilder.go
@@ -79,7 +79,7 @@ func (s *StringBuilder) resize(words ...string) {
79
allWordLength += len(word)
80
}
81
newLen := s.position + allWordLength
82
- if newLen >= cap(s.data) {
+ if newLen > cap(s.data) {
83
s.grow(newLen)
84
85
0 commit comments