summaryrefslogtreecommitdiff
path: root/ma/ma.go
diff options
context:
space:
mode:
Diffstat (limited to 'ma/ma.go')
-rw-r--r--ma/ma.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ma/ma.go b/ma/ma.go
index 078fb1b..fd48f1a 100644
--- a/ma/ma.go
+++ b/ma/ma.go
@@ -59,7 +59,8 @@ func (ma *MovingAverage) AllSequentialIncreasesLessThan(limit float64) bool {
return false
}
- // Invariant: ma.index always points to the oldest (see AddMeasurement above)
+ // Invariant: ma.index always points to the oldest (see AddMeasurement
+ // above)
oldestIndex := ma.index
previous := ma.instants[oldestIndex]
for i := 1; i < ma.intervals; i++ {