Output interface{} not []float64
This commit is contained in:
parent
d32873839a
commit
fed44641cc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue