@@ -68,7 +68,7 @@ func BindStyledParameterWithLocation(style string, explode bool, paramName strin
6868 // If the destination implements encoding.TextUnmarshaler we use it for binding
6969 if tu , ok := dest .(encoding.TextUnmarshaler ); ok {
7070 if err := tu .UnmarshalText ([]byte (value )); err != nil {
71- return fmt .Errorf ("error unmarshalling '%s' text as %T: %s" , value , dest , err )
71+ return fmt .Errorf ("error unmarshaling '%s' text as %T: %s" , value , dest , err )
7272 }
7373
7474 return nil
@@ -82,7 +82,7 @@ func BindStyledParameterWithLocation(style string, explode bool, paramName strin
8282
8383 if t .Kind () == reflect .Struct {
8484 // We've got a destination object, we'll create a JSON representation
85- // of the input value, and let the json library deal with the unmarshalling
85+ // of the input value, and let the json library deal with the unmarshaling
8686 parts , err := splitStyledParameter (style , explode , true , paramName , value )
8787 if err != nil {
8888 return err
@@ -233,7 +233,7 @@ func bindSplitPartsToDestinationArray(parts []string, dest interface{}) error {
233233// into the struct.
234234func bindSplitPartsToDestinationStruct (paramName string , parts []string , explode bool , dest interface {}) error {
235235 // We've got a destination object, we'll create a JSON representation
236- // of the input value, and let the json library deal with the unmarshalling
236+ // of the input value, and let the json library deal with the unmarshaling
237237 var fields []string
238238 if explode {
239239 fields = make ([]string , len (parts ))
@@ -462,7 +462,7 @@ func bindParamsToExplodedObject(paramName string, values url.Values, dest interf
462462 return true , BindStringToObject (values .Get (paramName ), dest )
463463 }
464464 if t .Kind () != reflect .Struct {
465- return false , fmt .Errorf ("unmarshalling query arg '%s' into wrong type" , paramName )
465+ return false , fmt .Errorf ("unmarshaling query arg '%s' into wrong type" , paramName )
466466 }
467467
468468 fieldsPresent := false
0 commit comments