@@ -39,7 +39,7 @@ import (
3939// ",innerxml", Unmarshal accumulates the raw XML nested inside the
4040// element in that field. The rest of the rules still apply.
4141//
42- // * If the struct has a field named XMLName of type xml. Name,
42+ // * If the struct has a field named XMLName of type Name,
4343// Unmarshal records the element name in that field.
4444//
4545// * If the XMLName field has an associated tag of the form
@@ -105,8 +105,8 @@ import (
105105// interpreting the string value in decimal. There is no check for
106106// overflow.
107107//
108- // Unmarshal maps an XML element to an xml. Name by recording the
109- // element name.
108+ // Unmarshal maps an XML element to a Name by recording the element
109+ // name.
110110//
111111// Unmarshal maps an XML element to a pointer by setting the pointer
112112// to a freshly allocated value and then mapping the element to that value.
@@ -115,13 +115,13 @@ func Unmarshal(data []byte, v interface{}) error {
115115 return NewDecoder (bytes .NewReader (data )).Decode (v )
116116}
117117
118- // Decode works like xml. Unmarshal, except it reads the decoder
118+ // Decode works like Unmarshal, except it reads the decoder
119119// stream to find the start element.
120120func (d * Decoder ) Decode (v interface {}) error {
121121 return d .DecodeElement (v , nil )
122122}
123123
124- // DecodeElement works like xml. Unmarshal except that it takes
124+ // DecodeElement works like Unmarshal except that it takes
125125// a pointer to the start XML element to decode into v.
126126// It is useful when a client reads some raw XML tokens itself
127127// but also wants to defer to Unmarshal for some elements.
0 commit comments