summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2019-05-02 22:25:54 -0700
committerDave Henderson <dhenderson@gmail.com>2019-05-02 22:28:30 -0700
commit2be2c1168085e0234a0cf06dab93b6d763bf3f7d (patch)
tree8debeb071f9f246785817c97480edceaba1f4cd5 /math
parentb65e14e1fda1c005a07ec9b98e746ce3d699521a (diff)
Linting more (and fixing more)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
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