mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
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.
|
// ExprType is an enum for the rule language expression types.
|
||||||
type ExprType int
|
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 (
|
const (
|
||||||
SCALAR ExprType = iota
|
SCALAR ExprType = iota
|
||||||
VECTOR
|
VECTOR
|
||||||
|
|
Loading…
Reference in a new issue