mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Update comments to clarify label formatting method
Signed-off-by: Aditya Tiwari <142050150+ADITYATIWARI342005@users.noreply.github.com>
This commit is contained in:
parent
2e4f5e8cfc
commit
301b9eff44
1 changed files with 2 additions and 2 deletions
|
|
@ -155,7 +155,7 @@ func (node *BinaryExpr) getMatchingStr() string {
|
|||
if vm.On {
|
||||
vmTag = "on"
|
||||
}
|
||||
// Use writeLabels() instead of joinLabels()
|
||||
// Format labels with proper UTF-8 quoting using writeLabels()
|
||||
b.Reset()
|
||||
b.WriteString(" ")
|
||||
b.WriteString(vmTag)
|
||||
|
|
@ -170,7 +170,7 @@ func (node *BinaryExpr) getMatchingStr() string {
|
|||
if vm.Card == CardManyToOne {
|
||||
vmCard = "left"
|
||||
}
|
||||
// Use writeLabels() instead of joinLabels()
|
||||
// Format labels with proper UTF-8 quoting using writeLabels()
|
||||
b.Reset()
|
||||
b.WriteString(" group_")
|
||||
b.WriteString(vmCard)
|
||||
|
|
|
|||
Loading…
Reference in a new issue