aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/xml/read.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/xml/read.go')
-rw-r--r--src/pkg/xml/read.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/xml/read.go b/src/pkg/xml/read.go
index d5f6842584..5685787230 100644
--- a/src/pkg/xml/read.go
+++ b/src/pkg/xml/read.go
@@ -231,7 +231,7 @@ func (p *Parser) unmarshal(val reflect.Value, start *StartElement) os.Error {
ns := "";
i := strings.LastIndex(tag, " ");
if i >= 0 {
- ns, tag = tag[0:i], tag[i+1:len(tag)]
+ ns, tag = tag[0:i], tag[i+1:]
}
if tag != start.Name.Local {
return UnmarshalError("expected element type <" + tag + "> but have <" + start.Name.Local + ">")