From 9353696d77fe986d35e84dc75b401a1001a50c85 Mon Sep 17 00:00:00 2001 From: Benjamin Raskin Date: Fri, 27 Jul 2018 13:17:43 -0400 Subject: [PATCH] Fix spelling and holt-winters check (#4424) Signed-off-by: Benjamin Raskin --- promql/functions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/promql/functions.go b/promql/functions.go index 5b06bacaf..c40c5eae4 100644 --- a/promql/functions.go +++ b/promql/functions.go @@ -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