aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/decode.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2017-08-19 22:33:51 +0200
committerDaniel Martí <mvdan@mvdan.cc>2017-08-26 15:09:09 +0000
commit99da8730b0b95da2c366135c8dc95dcfaf9c3715 (patch)
tree49b26739802e280ecddd0a18f586222adbba5410 /src/encoding/json/decode.go
parentbad6b6fa9190e9079a6d6958859856a66f0fab87 (diff)
downloadgo-99da8730b0b95da2c366135c8dc95dcfaf9c3715.tar.xz
all: remove some double spaces from comments
Went mainly for the ones that make no sense, such as the ones mid-sentence or after commas. Change-Id: Ie245d2c19cc7428a06295635cf6a9482ade25ff0 Reviewed-on: https://go-review.googlesource.com/57293 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/json/decode.go')
-rw-r--r--src/encoding/json/decode.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/encoding/json/decode.go b/src/encoding/json/decode.go
index 420a07e154..bc3bd9733d 100644
--- a/src/encoding/json/decode.go
+++ b/src/encoding/json/decode.go
@@ -508,7 +508,7 @@ func (d *decodeState) array(v reflect.Value) {
switch v.Kind() {
case reflect.Interface:
if v.NumMethod() == 0 {
- // Decoding into nil interface? Switch to non-reflect code.
+ // Decoding into nil interface? Switch to non-reflect code.
v.Set(reflect.ValueOf(d.arrayInterface()))
return
}
@@ -612,7 +612,7 @@ func (d *decodeState) object(v reflect.Value) {
}
v = pv
- // Decoding into nil interface? Switch to non-reflect code.
+ // Decoding into nil interface? Switch to non-reflect code.
if v.Kind() == reflect.Interface && v.NumMethod() == 0 {
v.Set(reflect.ValueOf(d.objectInterface()))
return
@@ -1190,7 +1190,7 @@ func unquoteBytes(s []byte) (t []byte, ok bool) {
b := make([]byte, len(s)+2*utf8.UTFMax)
w := copy(b, s[0:r])
for r < len(s) {
- // Out of room? Can only happen if s is full of
+ // Out of room? Can only happen if s is full of
// malformed UTF-8 and we're replacing each
// byte with RuneError.
if w >= len(b)-2*utf8.UTFMax {