mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-16 18:34:48 -04:00
helpers: Fix minor typo in error message for Seq()
This commit is contained in:
parent
19b6fdf2b1
commit
e3e5600b81
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user