summaryrefslogtreecommitdiff
path: root/ma/ma.go
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2022-03-18 21:20:30 -0400
committerWill Hawkins <[email protected]>2022-03-18 21:20:30 -0400
commit6e5711a1136ae5ed2e0533f1a5d39bb71fb668b5 (patch)
tree87c09b643d13bfbe9c68d3336a87cd04d6856ab6 /ma/ma.go
parent8047ec2a26a1c3120b8104318e3c573ac7df9938 (diff)
Make sure that we format with short lines.
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++ {