diff options
| author | Russ Cox <rsc@golang.org> | 2022-01-30 20:11:47 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2022-04-01 18:18:07 +0000 |
| commit | 690ac4071fa3e07113bf371c9e74394ab54d6749 (patch) | |
| tree | 668fba312c6e891b11dce2c3db163312d3ed8fde /src/encoding/json | |
| parent | 89dff118ada91061350aa149b54a2ab4fdbd6810 (diff) | |
| download | go-690ac4071fa3e07113bf371c9e74394ab54d6749.tar.xz | |
all: remove trailing blank doc comment lines
A future change to gofmt will rewrite
// Doc comment.
//
func f()
to
// Doc comment.
func f()
Apply that change preemptively to all doc comments.
For #51082.
Change-Id: I4023e16cfb0729b64a8590f071cd92f17343081d
Reviewed-on: https://go-review.googlesource.com/c/go/+/384259
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/encoding/json')
| -rw-r--r-- | src/encoding/json/decode.go | 1 | ||||
| -rw-r--r-- | src/encoding/json/encode.go | 1 | ||||
| -rw-r--r-- | src/encoding/json/stream.go | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/src/encoding/json/decode.go b/src/encoding/json/decode.go index 555df0b7e8..ce9675a62f 100644 --- a/src/encoding/json/decode.go +++ b/src/encoding/json/decode.go @@ -92,7 +92,6 @@ import ( // invalid UTF-16 surrogate pairs are not treated as an error. // Instead, they are replaced by the Unicode replacement // character U+FFFD. -// func Unmarshal(data []byte, v any) error { // Check for well-formedness. // Avoids filling out half a data structure diff --git a/src/encoding/json/encode.go b/src/encoding/json/encode.go index 571ac094e2..fc865386ed 100644 --- a/src/encoding/json/encode.go +++ b/src/encoding/json/encode.go @@ -154,7 +154,6 @@ import ( // JSON cannot represent cyclic data structures and Marshal does not // handle them. Passing cyclic structures to Marshal will result in // an error. -// func Marshal(v any) ([]byte, error) { e := newEncodeState() diff --git a/src/encoding/json/stream.go b/src/encoding/json/stream.go index 6362170d5d..b278ee4013 100644 --- a/src/encoding/json/stream.go +++ b/src/encoding/json/stream.go @@ -287,7 +287,6 @@ var _ Unmarshaler = (*RawMessage)(nil) // Number, for JSON numbers // string, for JSON string literals // nil, for JSON null -// type Token any const ( |
