Skip to content

Commit

Permalink
encoding/xml: use bytes.Buffer.WriteString
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mvdan committed Aug 9, 2022
1 parent 469a87d commit beebd53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoding/xml/xml.go
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ Input:

if haveText {
d.buf.Truncate(before)
d.buf.Write([]byte(text))
d.buf.WriteString(text)
b0, b1 = 0, 0
continue Input
}
Expand Down

0 comments on commit beebd53

Please sign in to comment.