Skip to content

Commit

Permalink
encoding/xml: fix typo in comment from CL 466295
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Sep 13, 2023
1 parent d570aca commit 20d7ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoding/xml/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ func (p *printer) marshalValue(val reflect.Value, finfo *fieldInfo, startTemplat
}
}

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

0 comments on commit 20d7ec8

Please sign in to comment.