diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go
index 2c8b531c133af3..03e88dec6f4fc6 100644
--- a/src/encoding/xml/xml_test.go
+++ b/src/encoding/xml/xml_test.go
@@ -1901,7 +1901,7 @@ func TestParseErrors(t *testing.T) {
{withDefaultHeader(``), `invalid sequence `), `invalid baz`),
- `element in space zzz closed by in space ""`},
+ `element in namespace zzz closed by in namespace ""`},
{withDefaultHeader("\xf1"), `invalid UTF-8`},
// Header-related errors.