helpers: Fix minor typo in error message for Seq()

This commit is contained in:
Anthony Fok 2017-01-04 00:57:28 -07:00
parent 19b6fdf2b1
commit e3e5600b81

View file

@ -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)