From: Shenghou Ma Date: Thu, 17 Apr 2014 02:42:24 +0000 (-0400) Subject: encoding/json: document Encoder will terminate each JSON value with '\n' X-Git-Tag: go1.3beta1~33 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6f25f1d4c901417af1da65e41992d71c30f64f8f;p=gostls13.git encoding/json: document Encoder will terminate each JSON value with '\n' Fixes #7767. LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews https://golang.org/cl/87420043 --- diff --git a/src/pkg/encoding/json/stream.go b/src/pkg/encoding/json/stream.go index e8d6bd4c2c..1cb289fd84 100644 --- a/src/pkg/encoding/json/stream.go +++ b/src/pkg/encoding/json/stream.go @@ -148,7 +148,8 @@ func NewEncoder(w io.Writer) *Encoder { return &Encoder{w: w} } -// Encode writes the JSON encoding of v to the stream. +// Encode writes the JSON encoding of v to the stream, +// followed by a newline character. // // See the documentation for Marshal for details about the // conversion of Go values to JSON.