aboutsummaryrefslogtreecommitdiff
path: root/src/bufio
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-02-24 18:35:17 -0800
committerIan Lance Taylor <iant@golang.org>2020-02-26 04:38:19 +0000
commit6052838bc325049505aba9c3b87256161f9e05e8 (patch)
tree5d566da7ff0796abd2eb08c168ac2547948fac67 /src/bufio
parentc46ffdd2eca339918ed30b6ba9d4715ba769d35d (diff)
downloadgo-6052838bc325049505aba9c3b87256161f9e05e8.tar.gz
go-6052838bc325049505aba9c3b87256161f9e05e8.zip
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>
Diffstat (limited to 'src/bufio')
-rw-r--r--src/bufio/bufio_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bufio/bufio_test.go b/src/bufio/bufio_test.go
index 9a9f102f15..4c4522c660 100644
--- a/src/bufio/bufio_test.go
+++ b/src/bufio/bufio_test.go
@@ -147,7 +147,7 @@ func TestReader(t *testing.T) {
for i := 0; i < len(texts)-1; i++ {
texts[i] = str + "\n"
all += texts[i]
- str += string(i%26 + 'a')
+ str += string(rune(i)%26 + 'a')
}
texts[len(texts)-1] = all