Skip to content

Commit 20d7ec8

Browse files
committed
encoding/xml: fix typo in comment from CL 466295
1 parent d570aca commit 20d7ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encoding/xml/marshal.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ func (p *printer) marshalValue(val reflect.Value, finfo *fieldInfo, startTemplat
586586
}
587587
}
588588

589-
// If a empty name was found, namespace is overridden with an empty space
589+
// If an empty name was found, namespace is overridden with an empty space
590590
if tinfo.xmlname != nil && start.Name.Space == "" &&
591591
tinfo.xmlname.xmlns == "" && tinfo.xmlname.name == "" &&
592592
len(p.elements) != 0 && p.elements[len(p.elements)-1].xmlns != "" {

0 commit comments

Comments
 (0)