Fix typo.

Change-Id: I6e7edcb48ace7fe4d6de4ff16519da5bb326b6ce
This commit is contained in:
Bjoern Rabenstein 2014-03-25 12:22:18 +01:00
parent caf47b2fbc
commit 257b720e87

View File

@ -51,7 +51,7 @@ type TagValue clientmodel.LabelValue
func (tv TagValue) MarshalJSON() ([]byte, error) {
length := len(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('"')
for i := 0; i < length; i++ {
b := tv[i]