Skip to content

Commit

Permalink
bug fix for ErrorPos return
Browse files Browse the repository at this point in the history
interesting that neither go nor staticcheck saw the unwritten values
  • Loading branch information
ionous committed Jul 20, 2024
1 parent f90d009 commit d3079fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decode/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type ErrorPos struct {
}

func (e ErrorPos) Pos() (y int, x int) {
return y, x
return e.y, e.x
}

func (e ErrorPos) Unwrap() error {
Expand Down

0 comments on commit d3079fd

Please sign in to comment.