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 0f71c5c commit 824de97Copy full SHA for 824de97
CHANGELOG.md
@@ -20,7 +20,7 @@ All notable changes to **ValueStringBuilder** will be documented in this file. T
20
21
## [0.5.3] - 2022-12-28
22
23
-\### Changed
+### Changed
24
25
- Smaller internal refactorings
26
stringbuilder.go
@@ -14,9 +14,10 @@ func NewStringBuilder(initialCapacity int) *StringBuilder {
14
15
// Creates a new instance of the StringBuilder with a preallocated text
16
func NewStringBuilderFromString(text string) *StringBuilder {
17
+ textRunes := []rune(text)
18
return &StringBuilder{
- data: []rune(text),
19
- position: len([]rune(text)),
+ data: textRunes,
+ position: len(textRunes),
}
0 commit comments