diff options
Diffstat (limited to 'src/encoding/json/stream.go')
| -rw-r--r-- | src/encoding/json/stream.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/encoding/json/stream.go b/src/encoding/json/stream.go index 87f0e57c6c..4c350fdd5e 100644 --- a/src/encoding/json/stream.go +++ b/src/encoding/json/stream.go @@ -246,9 +246,9 @@ func (enc *Encoder) SetEscapeHTML(on bool) { // be used to delay JSON decoding or precompute a JSON encoding. type RawMessage []byte -// MarshalJSON returns *m as the JSON encoding of m. -func (m *RawMessage) MarshalJSON() ([]byte, error) { - return *m, nil +// MarshalJSON returns m as the JSON encoding of m. +func (m RawMessage) MarshalJSON() ([]byte, error) { + return m, nil } // UnmarshalJSON sets *m to a copy of data. |
