mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
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:
parent
e097c70e6d
commit
1e62435960
|
@ -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 {
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue