mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix some typos in comment (#5175)
Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
This commit is contained in:
parent
c66aeb3fff
commit
e158c53fa9
|
@ -240,7 +240,7 @@ func Compare(a, b Labels) int {
|
||||||
return len(a) - len(b)
|
return len(a) - len(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Builder allows modifiying Labels.
|
// Builder allows modifying Labels.
|
||||||
type Builder struct {
|
type Builder struct {
|
||||||
base Labels
|
base Labels
|
||||||
del []string
|
del []string
|
||||||
|
|
|
@ -903,7 +903,7 @@ var testExpr = []struct {
|
||||||
}, {
|
}, {
|
||||||
input: `foo{a>="b"}`,
|
input: `foo{a>="b"}`,
|
||||||
fail: true,
|
fail: true,
|
||||||
// TODO(fabxc): willingly lexing wrong tokens allows for more precrise error
|
// TODO(fabxc): willingly lexing wrong tokens allows for more precise error
|
||||||
// messages from the parser - consider if this is an option.
|
// messages from the parser - consider if this is an option.
|
||||||
errMsg: "unexpected character inside braces: '>'",
|
errMsg: "unexpected character inside braces: '>'",
|
||||||
}, {
|
}, {
|
||||||
|
|
Loading…
Reference in a new issue