diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index f6bcc7fd30..b8bce7170a 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("\n\tJames Bond\n"), + ExpectXML: "\n\tJames Bond\n", }, }