]> Cypherpunks repositories - gostls13.git/commit
all: avoid string(i) where i has type int
authorIan Lance Taylor <iant@golang.org>
Tue, 25 Feb 2020 02:35:17 +0000 (18:35 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 26 Feb 2020 04:38:19 +0000 (04:38 +0000)
commit6052838bc325049505aba9c3b87256161f9e05e8
tree5d566da7ff0796abd2eb08c168ac2547948fac67
parentc46ffdd2eca339918ed30b6ba9d4715ba769d35d
all: avoid string(i) where i has type int

Instead use string(r) where r has type rune.

This is in preparation for a vet warning for string(i).

Updates #32479

Change-Id: Ic205269bba1bd41723950219ecfb67ce17a7aa79
Reviewed-on: https://go-review.googlesource.com/c/go/+/220844
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Akhil Indurti <aindurti@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Toshihiro Shiino <shiino.toshihiro@gmail.com>
12 files changed:
src/bufio/bufio_test.go
src/encoding/xml/xml.go
src/fmt/fmt_test.go
src/fmt/scan.go
src/go/types/conversions.go
src/net/dnsclient_test.go
src/net/rpc/jsonrpc/all_test.go
src/reflect/value.go
src/runtime/pprof/internal/profile/proto.go
src/runtime/string_test.go
src/strconv/quote_test.go
src/strings/strings_test.go