Output interface{} not []float64

This commit is contained in:
Tobie Morgan Hitchcock 2018-07-04 11:40:57 +01:00
parent d32873839a
commit fed44641cc

View file

@ -110,7 +110,7 @@ func mathMin(ctx context.Context, args ...interface{}) (out interface{}, err err
return outputFloat(math.Min(vals))
}
func mathMode(ctx context.Context, args ...interface{}) (out []float64, err error) {
func mathMode(ctx context.Context, args ...interface{}) (out interface{}, err error) {
vals := ensureFloats(args[0])
return math.Mode(vals), nil
}