From 3bfbfa821fbf4835d6be2e3bfda4ccac397c74fa Mon Sep 17 00:00:00 2001 From: Sean Liao Date: Fri, 12 Jul 2024 20:03:08 +0100 Subject: [PATCH] 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 --- src/encoding/json/stream.go | 1 + 1 file changed, 1 insertion(+) 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 -- 2.48.1