]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/xml: remove unnecessary fmt.Sprintf call
authorguoguangwu <guoguangwu@magic-shield.com>
Fri, 23 Feb 2024 01:07:08 +0000 (01:07 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 27 Feb 2024 16:32:42 +0000 (16:32 +0000)
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>
src/encoding/xml/marshal_test.go

index 90922f549e21fd00e5fdf68604cec3164d6ab5d4..88918d4552b248e8c596e092b52fc19028297833 100644 (file)
@@ -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>",
        },
 }