mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 22:37:27 -08:00
Fix typo.
Change-Id: I6e7edcb48ace7fe4d6de4ff16519da5bb326b6ce
This commit is contained in:
parent
caf47b2fbc
commit
257b720e87
|
@ -51,7 +51,7 @@ type TagValue clientmodel.LabelValue
|
||||||
func (tv TagValue) MarshalJSON() ([]byte, error) {
|
func (tv TagValue) MarshalJSON() ([]byte, error) {
|
||||||
length := len(tv)
|
length := len(tv)
|
||||||
// Need at least two more bytes than in tv.
|
// Need at least two more bytes than in tv.
|
||||||
result := bytes.NewBuffer(make([]byte, 1, length+2))
|
result := bytes.NewBuffer(make([]byte, 0, length+2))
|
||||||
result.WriteByte('"')
|
result.WriteByte('"')
|
||||||
for i := 0; i < length; i++ {
|
for i := 0; i < length; i++ {
|
||||||
b := tv[i]
|
b := tv[i]
|
||||||
|
|
Loading…
Reference in a new issue