diff options
author | Ondřej Surý <ondrej@sury.org> | 2012-02-29 11:23:13 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2012-02-29 11:23:13 +0100 |
commit | b6d7097a0d6072199f2cd74d67404890697cf78a (patch) | |
tree | a2193c528a79fd5606507568859ee5067c6b86e4 /src/pkg/encoding/json/stream.go | |
parent | 4cecda6c347bd6902b960c6a35a967add7070b0d (diff) | |
download | golang-b6d7097a0d6072199f2cd74d67404890697cf78a.tar.gz |
Imported Upstream version 2012.02.22upstream-weekly/2012.02.22
Diffstat (limited to 'src/pkg/encoding/json/stream.go')
-rw-r--r-- | src/pkg/encoding/json/stream.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/encoding/json/stream.go b/src/pkg/encoding/json/stream.go index f24763950..7d1cc5f11 100644 --- a/src/pkg/encoding/json/stream.go +++ b/src/pkg/encoding/json/stream.go @@ -19,6 +19,9 @@ type Decoder struct { } // NewDecoder returns a new decoder that reads from r. +// +// The decoder introduces its own buffering and may +// read data from r beyond the JSON values requested. func NewDecoder(r io.Reader) *Decoder { return &Decoder{r: r} } |