Skip to content

Commit

Permalink
Merge pull request #37 from gates/fix-argument-scanner
Browse files Browse the repository at this point in the history
Fix ErrTooFewArguments
  • Loading branch information
lujjjh authored Aug 26, 2019
2 parents 347f89e + 2811904 commit 96fb256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions function.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ func (s *ArgumentScanner) Scan(values ...interface{}) error {
argc := len(args)
if argc < len(values) {
return &ErrTooFewArguments{
expected: s.offset + argc,
actual: s.offset + len(values),
expected: s.offset + len(values),
actual: s.offset + argc,
}
}
r := s.fc.Runtime()
Expand Down

0 comments on commit 96fb256

Please sign in to comment.