From 1e62435960fcd4991e320fc055de412e0cd7ed9f Mon Sep 17 00:00:00 2001 From: AllenZMC Date: Sat, 21 Sep 2019 21:36:33 +0800 Subject: [PATCH] fix wrong spells in live_reader.go (#5899) * fix wrong spells in live_reader.go * fix wrong spells in lex.go Signed-off-by: czm --- promql/lex.go | 2 +- tsdb/wal/live_reader.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/promql/lex.go b/promql/lex.go index dde2799f3..d3b611e90 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 6d2903688..446e85994 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{