diff options
Diffstat (limited to 'src/encoding/json/v2_decode.go')
| -rw-r--r-- | src/encoding/json/v2_decode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/json/v2_decode.go b/src/encoding/json/v2_decode.go index 4b9e850939..c82ee903c3 100644 --- a/src/encoding/json/v2_decode.go +++ b/src/encoding/json/v2_decode.go @@ -199,7 +199,7 @@ func (n Number) MarshalJSONTo(enc *jsontext.Encoder) error { } n = cmp.Or(n, "0") var num []byte - val := enc.UnusedBuffer() + val := enc.AvailableBuffer() if stringify { val = append(val, '"') val = append(val, n...) |
