encoding/json: Tweak documentation for Encoder.Encode.

The documentation for the Encoder type calls it a stream,
not a connection.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/14015044
This commit is contained in:
Kamil Kisiel 2013-09-27 15:38:39 +10:00 committed by Andrew Gerrand
parent 0ab8f2d287
commit 48da6754e2

View file

@ -148,7 +148,7 @@ func NewEncoder(w io.Writer) *Encoder {
return &Encoder{w: w}
}
// Encode writes the JSON encoding of v to the connection.
// Encode writes the JSON encoding of v to the stream.
//
// See the documentation for Marshal for details about the
// conversion of Go values to JSON.