diff options
author | Russ Cox <rsc@golang.org> | 2011-10-25 22:20:02 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-10-25 22:20:02 -0700 |
commit | a2a0c70a8b83096f346908dc85e6f269def667ac (patch) | |
tree | 207ee021c6dfa6c3609b708430436d756b19d96a /src/pkg/testing/quick/quick.go | |
parent | c6744aa6cd448c43c487dc9f6ecd7c9a5d4eb9f4 (diff) | |
download | go-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 'src/pkg/testing/quick/quick.go')
-rw-r--r-- | src/pkg/testing/quick/quick.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/testing/quick/quick.go b/src/pkg/testing/quick/quick.go index 756a60e13..9ec1925de 100644 --- a/src/pkg/testing/quick/quick.go +++ b/src/pkg/testing/quick/quick.go @@ -123,9 +123,9 @@ func Value(t reflect.Type, rand *rand.Rand) (value reflect.Value, ok bool) { return s, true case reflect.String: numChars := rand.Intn(complexSize) - codePoints := make([]int, numChars) + codePoints := make([]rune, numChars) for i := 0; i < numChars; i++ { - codePoints[i] = rand.Intn(0x10ffff) + codePoints[i] = rune(rand.Intn(0x10ffff)) } return reflect.ValueOf(string(codePoints)), true case reflect.Struct: |