Skip to content

Commit beebd53

Browse files
committed
encoding/xml: use bytes.Buffer.WriteString
Change-Id: Icb0b917c48252ed8831e6c07109c1bc2d2438a42 Reviewed-on: https://go-review.googlesource.com/c/go/+/421234 Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: hopehook <[email protected]> Run-TryBot: Daniel Martí <[email protected]> Reviewed-by: Dan Kortschak <[email protected]>
1 parent 469a87d commit beebd53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encoding/xml/xml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ Input:
11001100

11011101
if haveText {
11021102
d.buf.Truncate(before)
1103-
d.buf.Write([]byte(text))
1103+
d.buf.WriteString(text)
11041104
b0, b1 = 0, 0
11051105
continue Input
11061106
}

0 commit comments

Comments
 (0)