diff --git a/promql/lex.go b/promql/lex.go index dde2799f30..d3b611e90b 100644 --- a/promql/lex.go +++ b/promql/lex.go @@ -66,7 +66,7 @@ func (i ItemType) isAggregatorWithParam() bool { // Returns false otherwise. func (i ItemType) isKeyword() bool { return i > keywordsStart && i < keywordsEnd } -// isCompairsonOperator returns true if the item corresponds to a comparison operator. +// isComparisonOperator returns true if the item corresponds to a comparison operator. // Returns false otherwise. func (i ItemType) isComparisonOperator() bool { switch i { diff --git a/tsdb/wal/live_reader.go b/tsdb/wal/live_reader.go index 6d29036884..446e859940 100644 --- a/tsdb/wal/live_reader.go +++ b/tsdb/wal/live_reader.go @@ -32,7 +32,7 @@ type liveReaderMetrics struct { readerCorruptionErrors *prometheus.CounterVec } -// NewLiveReaderMetrics instatiates, registers and returns metrics to be injected +// NewLiveReaderMetrics instantiates, registers and returns metrics to be injected // at LiveReader instantiation. func NewLiveReaderMetrics(reg prometheus.Registerer) *liveReaderMetrics { m := &liveReaderMetrics{