summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/math.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/math.go b/math/math.go
index 08feb1fc..08a8eee3 100644
--- a/math/math.go
+++ b/math/math.go
@@ -34,7 +34,7 @@ func Seq(start, end, step int64) []int64 {
}
// adjust the end so it aligns exactly (avoids infinite loop!)
- end = end - (end-start)%step
+ end -= (end - start) % step
seq := []int64{start}
last := start