From 9ab072b470b6936a209f45bde5154a23a4cc7e0d Mon Sep 17 00:00:00 2001 From: Guangwen Feng Date: Sun, 28 Jun 2020 18:03:09 +0800 Subject: [PATCH] Fix golint issue caused by typo (#7475) Signed-off-by: Guangwen Feng --- promql/parser/lex.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/promql/parser/lex.go b/promql/parser/lex.go index c68300442..09afe8342 100644 --- a/promql/parser/lex.go +++ b/promql/parser/lex.go @@ -48,21 +48,21 @@ func (i Item) String() string { return fmt.Sprintf("%q", i.Val) } -// isOperator returns true if the Item corresponds to a arithmetic or set operator. +// IsOperator returns true if the Item corresponds to a arithmetic or set operator. // Returns false otherwise. func (i ItemType) IsOperator() bool { return i > operatorsStart && i < operatorsEnd } -// isAggregator returns true if the Item belongs to the aggregator functions. +// IsAggregator returns true if the Item belongs to the aggregator functions. // Returns false otherwise func (i ItemType) IsAggregator() bool { return i > aggregatorsStart && i < aggregatorsEnd } -// isAggregator returns true if the Item is an aggregator that takes a parameter. +// IsAggregatorWithParam returns true if the Item is an aggregator that takes a parameter. // Returns false otherwise func (i ItemType) IsAggregatorWithParam() bool { return i == TOPK || i == BOTTOMK || i == COUNT_VALUES || i == QUANTILE } -// isKeyword returns true if the Item corresponds to a keyword. +// IsKeyword returns true if the Item corresponds to a keyword. // Returns false otherwise. func (i ItemType) IsKeyword() bool { return i > keywordsStart && i < keywordsEnd } @@ -77,7 +77,7 @@ func (i ItemType) IsComparisonOperator() bool { } } -// isSetOperator returns whether the Item corresponds to a set operator. +// IsSetOperator returns whether the Item corresponds to a set operator. func (i ItemType) IsSetOperator() bool { switch i { case LAND, LOR, LUNLESS: