Skip to content

Commit

Permalink
helpers: Fix minor typo in error message for Seq()
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyfok committed Jan 4, 2017
1 parent 19b6fdf commit e3e5600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/general.go
Expand Up @@ -363,13 +363,13 @@ func Seq(args ...interface{}) ([]int, error) {

// sanity check
if last < -100000 {
return nil, errors.New("size of result exeeds limit")
return nil, errors.New("size of result exceeds limit")
}
size := ((last - first) / inc) + 1

// sanity check
if size <= 0 || size > 2000 {
return nil, errors.New("size of result exeeds limit")
return nil, errors.New("size of result exceeds limit")
}

seq := make([]int, size)
Expand Down

0 comments on commit e3e5600

Please sign in to comment.