projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19b6fdf
)
helpers: Fix minor typo in error message for Seq()
author
Anthony Fok
<foka@debian.org>
Wed, 4 Jan 2017 07:57:28 +0000
(
00:57
-0700)
committer
Anthony Fok
<foka@debian.org>
Wed, 4 Jan 2017 07:57:28 +0000
(
00:57
-0700)
helpers/general.go
patch
|
blob
|
history
diff --git
a/helpers/general.go
b/helpers/general.go
index c545b286d45b64bd28891152e4cf60af379e13ea..83db76fc5a603405c7ae5fe91f7659d6de225aee 100644
(file)
--- a/
helpers/general.go
+++ b/
helpers/general.go
@@
-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 ex
c
eeds 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 ex
c
eeds limit")
}
seq := make([]int, size)