mirror of https://github.com/golang/go.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
This commit is contained in:
parent
1d2b71ce83
commit
6f25f1d4c9
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue