From: Sean Liao Date: Fri, 12 Jul 2024 19:03:08 +0000 (+0100) Subject: encoding/json: document compact json output in Encoder.Encode X-Git-Tag: go1.23.0~7^2~19 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3bfbfa821fbf4835d6be2e3bfda4ccac397c74fa;p=gostls13.git encoding/json: document compact json output in Encoder.Encode Using the same wording as Compact. Fixes #67943 Change-Id: I578874f3e917bba1634dd988895e622a5ac78c74 Reviewed-on: https://go-review.googlesource.com/c/go/+/597976 LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: Cherry Mui --- diff --git a/src/encoding/json/stream.go b/src/encoding/json/stream.go index 5c98d1de04..cb61ea7212 100644 --- a/src/encoding/json/stream.go +++ b/src/encoding/json/stream.go @@ -194,6 +194,7 @@ func NewEncoder(w io.Writer) *Encoder { } // Encode writes the JSON encoding of v to the stream, +// with insignificant space characters elided, // followed by a newline character. // // See the documentation for [Marshal] for details about the