diff options
Diffstat (limited to 'src/pkg/json/stream.go')
-rw-r--r-- | src/pkg/json/stream.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/json/stream.go b/src/pkg/json/stream.go index d4fb34660..cb9b16559 100644 --- a/src/pkg/json/stream.go +++ b/src/pkg/json/stream.go @@ -5,7 +5,6 @@ package json import ( - "bytes" "io" "os" ) @@ -177,7 +176,7 @@ func (m *RawMessage) UnmarshalJSON(data []byte) os.Error { if m == nil { return os.NewError("json.RawMessage: UnmarshalJSON on nil pointer") } - *m = bytes.Add((*m)[0:0], data) + *m = append((*m)[0:0], data...) return nil } |