summaryrefslogtreecommitdiff
path: root/test/range.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-10-25 22:20:02 -0700
committerRuss Cox <rsc@golang.org>2011-10-25 22:20:02 -0700
commita2a0c70a8b83096f346908dc85e6f269def667ac (patch)
tree207ee021c6dfa6c3609b708430436d756b19d96a /test/range.go
parentc6744aa6cd448c43c487dc9f6ecd7c9a5d4eb9f4 (diff)
downloadgo-a2a0c70a8b83096f346908dc85e6f269def667ac.tar.gz
cgo, goyacc, go/build, html, http, path, path/filepath, testing/quick, test: use rune
Nothing terribly interesting here. R=golang-dev, bradfitz, gri, r CC=golang-dev http://codereview.appspot.com/5300043
Diffstat (limited to 'test/range.go')
-rw-r--r--test/range.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/range.go b/test/range.go
index 91ccd6307..84119450b 100644
--- a/test/range.go
+++ b/test/range.go
@@ -172,7 +172,7 @@ func makestring() string {
}
func teststring() {
- s := 0
+ var s rune
nmake = 0
for _, v := range makestring() {
s += v
@@ -208,7 +208,7 @@ func teststring1() {
func makemap() map[int]int {
nmake++
- return map[int]int{0:'a', 1:'b', 2:'c', 3:'d', 4:'☺'}
+ return map[int]int{0: 'a', 1: 'b', 2: 'c', 3: 'd', 4: '☺'}
}
func testmap() {