Skip to content

Commit 261808b

Browse files
committed
Add Operator comment
1 parent 16131b1 commit 261808b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

expr.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ func Env(i interface{}) conf.Option {
4444
}
4545
}
4646

47-
func Operator(operator string, fns ...string) conf.Option {
47+
// Operator allows to override binary operator with function.
48+
func Operator(operator string, fn ...string) conf.Option {
4849
return func(c *conf.Config) {
49-
c.Operators[operator] = append(c.Operators[operator], fns...)
50+
c.Operators[operator] = append(c.Operators[operator], fn...)
5051
}
5152
}
5253

0 commit comments

Comments
 (0)