aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/decode.go
diff options
context:
space:
mode:
authorPhilip Børgesen <PhilipBorgesen@users.noreply.github.com>2018-08-21 00:52:46 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-08-21 02:26:17 +0000
commit97c7e0e0ad1be5c4d211e0182ff970a2086e7679 (patch)
tree1a32f9050202fa470e09103bb6931ef3bffed44e /src/encoding/json/decode.go
parent0ca3203becb917b17a1a0b1903381b3d9690fcfc (diff)
downloadgo-97c7e0e0ad1be5c4d211e0182ff970a2086e7679.tar.xz
encoding/json: eliminate superfluous space in Decoder.Token error messages
The existing Decoder.tokenError implementation creates its error messages by concatenating "invalid character " + quoteChar(c) + " " + context. All context values however already start with a space leading to error messages containing two spaces. This change removes " " from the concatenation expression. Fixes #26587 Change-Id: I93d14319396636b2a40d55053bda88c98e94a81a GitHub-Last-Rev: 6db7e1991b15beee601f558be72a2737070d8f68 GitHub-Pull-Request: golang/go#26588 Reviewed-on: https://go-review.googlesource.com/125775 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Daniel MartĂ­ <mvdan@mvdan.cc> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/json/decode.go')
0 files changed, 0 insertions, 0 deletions