Clarify why we need int constants for expression types.
Change-Id: I053fc5d32c118dbdb204dc8193337f981aff796e
This commit is contained in:
parent
47551b8eee
commit
2ade9d40cf
|
@ -68,7 +68,9 @@ type groupedAggregation struct {
|
|||
// ExprType is an enum for the rule language expression types.
|
||||
type ExprType int
|
||||
|
||||
// Possible language expression types.
|
||||
// Possible language expression types. We define these as integer constants
|
||||
// because sometimes we need to pass around just the type without an object of
|
||||
// that type.
|
||||
const (
|
||||
SCALAR ExprType = iota
|
||||
VECTOR
|
||||
|
|
Loading…
Reference in New Issue