diff options
| author | Sean Liao <sean@liao.dev> | 2024-07-12 20:03:08 +0100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-07-16 18:06:21 +0000 |
| commit | 3bfbfa821fbf4835d6be2e3bfda4ccac397c74fa (patch) | |
| tree | c6b93a0f2e09b4a4dc1d0cad78435058987ae7ab | |
| parent | d5479e197d8a9eb98c30d7ec6ddc3fcbde459ebe (diff) | |
| download | go-3bfbfa821fbf4835d6be2e3bfda4ccac397c74fa.tar.xz | |
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
| -rw-r--r-- | src/encoding/json/stream.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
