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 <zhongming.chang@daocloud.io>
This commit is contained in:
AllenZMC 2019-09-21 21:36:33 +08:00 committed by Krasi Georgiev
parent e097c70e6d
commit 1e62435960
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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{