@@ -77,7 +77,7 @@ func codeStringer(code interface{}, dict codeDictionary, codeName string) string
77
77
func codeToCBOR (code interface {}, dict stringDictionary ) ([]byte , error ) {
78
78
v := code
79
79
80
- // always try to minimise bandwidth
80
+ // always try to minimize bandwidth
81
81
if err := codifyString (& v , dict ); err != nil {
82
82
return nil , err
83
83
}
@@ -88,7 +88,7 @@ func codeToCBOR(code interface{}, dict stringDictionary) ([]byte, error) {
88
88
func codeToJSON (code interface {}, dict codeDictionary ) ([]byte , error ) {
89
89
v := code // make a copy we can clobber
90
90
91
- // always try to maximise expressiveness
91
+ // always try to maximize expressiveness
92
92
// however, avoid encoding unknown codes
93
93
if err := stringifyCode (& v , dict , "" ); err != nil {
94
94
return nil , err
@@ -100,7 +100,7 @@ func codeToJSON(code interface{}, dict codeDictionary) ([]byte, error) {
100
100
func codeToXMLAttr (attrName xml.Name , code interface {}, dict codeDictionary ) (xml.Attr , error ) {
101
101
v := code // make a copy we can clobber
102
102
103
- // always try to maximise expressiveness
103
+ // always try to maximize expressiveness
104
104
// however, avoid encoding unknown codes
105
105
if err := stringifyCode (& v , dict , "" ); err != nil {
106
106
return xml.Attr {}, err
@@ -116,7 +116,7 @@ func xToCode(enc encoder, from []byte, dict stringDictionary, to *interface{}) e
116
116
return err
117
117
}
118
118
119
- // try to make internal representation as homogeneus as possible
119
+ // try to make internal representation as homogeneous as possible
120
120
if err := codifyString (to , dict ); err != nil {
121
121
return err
122
122
}
0 commit comments