]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/json: Tweak documentation for Encoder.Encode.
authorKamil Kisiel <kamil@kamilkisiel.net>
Fri, 27 Sep 2013 05:38:39 +0000 (15:38 +1000)
committerAndrew Gerrand <adg@golang.org>
Fri, 27 Sep 2013 05:38:39 +0000 (15:38 +1000)
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

src/pkg/encoding/json/stream.go

index 67f6be87b2196a609f203cd2421b2e8d651e9c71..1928abadb7d4ae40613ef8b8b46000d734d932c2 100644 (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.