Skip to content

Commit

Permalink
Update decoder.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahalsmiller authored Nov 7, 2024
1 parent a0f0063 commit 7130d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func DecodeErrorOnDuplicates(out interface{}, in string) error {
return decode(out, in, true)
}

// decode reads the given input and decodes it into the structure, takes in a boolean to determine if it should error on duplicate attribute
// given by `out`.
// decode reads the given input and decodes it into the structure given by `out`.
// takes in a boolean to determine if it should error on duplicate attribute
func decode(out interface{}, in string, errorOnDuplicateAtributes bool) error {
obj, err := parse([]byte(in), errorOnDuplicateAtributes)
if err != nil {
Expand Down

0 comments on commit 7130d9c

Please sign in to comment.