@@ -39,7 +39,7 @@ import (
39
39
// ",innerxml", Unmarshal accumulates the raw XML nested inside the
40
40
// element in that field. The rest of the rules still apply.
41
41
//
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,
43
43
// Unmarshal records the element name in that field.
44
44
//
45
45
// * If the XMLName field has an associated tag of the form
@@ -105,8 +105,8 @@ import (
105
105
// interpreting the string value in decimal. There is no check for
106
106
// overflow.
107
107
//
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.
110
110
//
111
111
// Unmarshal maps an XML element to a pointer by setting the pointer
112
112
// to a freshly allocated value and then mapping the element to that value.
@@ -115,13 +115,13 @@ func Unmarshal(data []byte, v interface{}) error {
115
115
return NewDecoder (bytes .NewReader (data )).Decode (v )
116
116
}
117
117
118
- // Decode works like xml. Unmarshal, except it reads the decoder
118
+ // Decode works like Unmarshal, except it reads the decoder
119
119
// stream to find the start element.
120
120
func (d * Decoder ) Decode (v interface {}) error {
121
121
return d .DecodeElement (v , nil )
122
122
}
123
123
124
- // DecodeElement works like xml. Unmarshal except that it takes
124
+ // DecodeElement works like Unmarshal except that it takes
125
125
// a pointer to the start XML element to decode into v.
126
126
// It is useful when a client reads some raw XML tokens itself
127
127
// but also wants to defer to Unmarshal for some elements.
0 commit comments