Skip to content

Commit dcba04a

Browse files
committedAug 13, 2024·
chore: update comment for review
1 parent 8808e0c commit dcba04a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎array/builder.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ func (b *StringBuilder) AppendBytes(buf []byte) {
8888

8989
}
9090

91-
// Append appends a string to the array being built. The input string
92-
// will always be copied.
91+
// Append appends a string to the array being built. A reference
92+
// to the input string will not be retained by the builder. The
93+
// string will be copied, if necessary.
9394
func (b *StringBuilder) Append(v string) {
9495
// Avoid copying the input string as AppendBytes
9596
// will never keep a reference or modify the input.

0 commit comments

Comments
 (0)
Please sign in to comment.