Skip to content

Commit

Permalink
Fix minor typo in decodeInit error
Browse files Browse the repository at this point in the history
Updates error to read 'decodeInit' rather than 'decodInit'.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
  • Loading branch information
hasheddan committed Nov 4, 2021
1 parent c4f7968 commit 50ca234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ func (d *Decoder) DecodeContext(ctx context.Context, v interface{}) error {
return nil
}
if err := d.decodeInit(); err != nil {
return errors.Wrapf(err, "failed to decodInit")
return errors.Wrapf(err, "failed to decodeInit")
}
if err := d.decode(ctx, rv); err != nil {
if err == io.EOF {
Expand Down

0 comments on commit 50ca234

Please sign in to comment.