diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go
index 90922f549e2..88918d4552b 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",
},
}