diff options
author | guoguangwu <guoguangwu@magic-shield.com> | 2024-02-23 01:07:08 +0000 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-02-27 16:32:42 +0000 |
commit | 8b94733bc7c648da47ec312476f22d48785be277 (patch) | |
tree | e21012382b9a8565c159f6cf2e309ed9d468be6b /src/encoding | |
parent | d8311c86239eebe36e9882760297fd85197add3c (diff) | |
download | go-8b94733bc7c648da47ec312476f22d48785be277.tar.gz go-8b94733bc7c648da47ec312476f22d48785be277.zip |
encoding/xml: remove unnecessary fmt.Sprintf call
Change-Id: Iba6014340d8b697a3a26b35e8d5a702ccf332e10
GitHub-Last-Rev: ef60463c7b98c2bdabe6d04e0f86947b7f395765
GitHub-Pull-Request: golang/go#65872
Reviewed-on: https://go-review.googlesource.com/c/go/+/565841
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Diffstat (limited to 'src/encoding')
-rw-r--r-- | src/encoding/xml/marshal_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index 90922f549e..88918d4552 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -1751,7 +1751,7 @@ var marshalIndentTests = []struct { }, Prefix: "", Indent: "\t", - ExpectXML: fmt.Sprintf("<agent handle=\"007\">\n\t<Identity>James Bond</Identity><redacted/>\n</agent>"), + ExpectXML: "<agent handle=\"007\">\n\t<Identity>James Bond</Identity><redacted/>\n</agent>", }, } |