From: Kamil Kisiel Date: Fri, 27 Sep 2013 05:38:39 +0000 (+1000) Subject: encoding/json: Tweak documentation for Encoder.Encode. X-Git-Tag: go1.2rc2~106 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=48da6754e201373227bb977cab6b884b51a2c765;p=gostls13.git 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 --- diff --git a/src/pkg/encoding/json/stream.go b/src/pkg/encoding/json/stream.go index 67f6be87b2..1928abadb7 100644 --- a/src/pkg/encoding/json/stream.go +++ b/src/pkg/encoding/json/stream.go @@ -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.