mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 01:02:47 +00:00
helpers: Fix minor typo in error message for Seq()
This commit is contained in:
parent
19b6fdf2b1
commit
e3e5600b81
1 changed files with 2 additions and 2 deletions
|
@ -363,13 +363,13 @@ func Seq(args ...interface{}) ([]int, error) {
|
||||||
|
|
||||||
// sanity check
|
// sanity check
|
||||||
if last < -100000 {
|
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
|
size := ((last - first) / inc) + 1
|
||||||
|
|
||||||
// sanity check
|
// sanity check
|
||||||
if size <= 0 || size > 2000 {
|
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)
|
seq := make([]int, size)
|
||||||
|
|
Loading…
Reference in a new issue