From 8fd0d3f1419888016cf639a7da2d801d473a4f62 Mon Sep 17 00:00:00 2001 From: Brandon Johnson Date: Thu, 14 Mar 2024 14:43:13 -0400 Subject: [PATCH] few straggling comments --- pkg/ottl/ottlfuncs/func_parse_xml.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ottl/ottlfuncs/func_parse_xml.go b/pkg/ottl/ottlfuncs/func_parse_xml.go index 9895ca443c455..42dac93307dfb 100644 --- a/pkg/ottl/ottlfuncs/func_parse_xml.go +++ b/pkg/ottl/ottlfuncs/func_parse_xml.go @@ -68,7 +68,7 @@ type xmlElement struct { children []xmlElement } -// UnmarshalXML implements xml.Unmarshaler for anyXML +// UnmarshalXML implements xml.Unmarshaler for xmlElement func (a *xmlElement) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { a.tag = start.Name.Local a.attributes = start.Attr @@ -104,7 +104,7 @@ func (a *xmlElement) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error } } -// intoMap converts and adds the anyXML into the provided pcommon.Map. +// intoMap converts and adds the xmlElement into the provided pcommon.Map. func (a xmlElement) intoMap(m pcommon.Map) { m.EnsureCapacity(4)