Skip to content

Commit

Permalink
Fix ErrTooFewArguments
Browse files Browse the repository at this point in the history
  • Loading branch information
lujjjh committed Aug 26, 2019
1 parent 347f89e commit 2811904
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 2811904

Please sign in to comment.