aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/encode.go
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2017-10-11 14:41:25 -0700
committerJoe Tsai <thebrokentoaster@gmail.com>2017-10-11 22:09:22 +0000
commita3e013b0824ba53168b5d91abdb6ce191510a89d (patch)
tree8686a160c6f1345a915d0ea59f73a53906a7aa0c /src/encoding/json/encode.go
parentedcf2d0cd604062cdd3b28d7e679b8b271ddc2ec (diff)
downloadgo-a3e013b0824ba53168b5d91abdb6ce191510a89d.tar.xz
encoding/json: use Deprecated markers
In #10909, it was decided that "Deprecated:" is a magic string for tools (e.g., #17056 for godoc) to detect deprecated identifiers. Use those convention instead of custom written prose. Change-Id: Ia514fc3c88fc502e86c6e3de361c435f4cb80b22 Reviewed-on: https://go-review.googlesource.com/70110 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
Diffstat (limited to 'src/encoding/json/encode.go')
-rw-r--r--src/encoding/json/encode.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding/json/encode.go b/src/encoding/json/encode.go
index d1dda9796a..3f7a8d0175 100644
--- a/src/encoding/json/encode.go
+++ b/src/encoding/json/encode.go
@@ -245,8 +245,8 @@ func (e *UnsupportedValueError) Error() string {
// attempting to encode a string value with invalid UTF-8 sequences.
// As of Go 1.2, Marshal instead coerces the string to valid UTF-8 by
// replacing invalid bytes with the Unicode replacement rune U+FFFD.
-// This error is no longer generated but is kept for backwards compatibility
-// with programs that might mention it.
+//
+// Deprecated: No longer used; kept for compatibility.
type InvalidUTF8Error struct {
S string // the whole string value that caused the error
}