Fix spelling and holt-winters check (#4424)

Signed-off-by: Benjamin Raskin <braskin@uber.com>
This commit is contained in:
Benjamin Raskin 2018-07-27 13:17:43 -04:00 committed by Brian Brazil
parent ffb7836c14
commit 9353696d77
1 changed files with 2 additions and 2 deletions

View File

@ -232,10 +232,10 @@ func funcHoltWinters(vals []Value, args Expressions, enh *EvalNodeHelper) Vector
// Sanity check the input.
if sf <= 0 || sf >= 1 {
panic(fmt.Errorf("invalid smoothing factor. Expected: 0 < sf < 1 goT: %f", sf))
panic(fmt.Errorf("invalid smoothing factor. Expected: 0 < sf < 1, got: %f", sf))
}
if tf <= 0 || tf >= 1 {
panic(fmt.Errorf("invalid trend factor. Expected: 0 < tf < 1 goT: %f", sf))
panic(fmt.Errorf("invalid trend factor. Expected: 0 < tf < 1, got: %f", tf))
}
var l int