summaryrefslogtreecommitdiff
path: root/test/ken
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-06-08 17:51:57 -0700
committerRuss Cox <rsc@golang.org>2010-06-08 17:51:57 -0700
commit86bca21ef3fb4caf07f58216af511ce6938742e6 (patch)
tree9650da2944370ff57a40bc0accdc6665dce42722 /test/ken
parent0cac80e43a4ffeaa2b17ba5ced33181d7f2c824b (diff)
downloadgo-86bca21ef3fb4caf07f58216af511ce6938742e6.tar.gz
misc cleanup: gofmt + &x -> x[0:] conversion
R=gri CC=golang-dev http://codereview.appspot.com/1620042
Diffstat (limited to 'test/ken')
-rw-r--r--test/ken/string.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ken/string.go b/test/ken/string.go
index 6c15b1616..cbedad4e8 100644
--- a/test/ken/string.go
+++ b/test/ken/string.go
@@ -88,7 +88,7 @@ func main() {
z1[0] = 'a'
z1[1] = 'b'
z1[2] = 'c'
- c = string(&z1)
+ c = string(z1[0:])
if c != "abc" {
print("create byte array ", c)
panic("fail")
@@ -99,7 +99,7 @@ func main() {
z2[0] = 'a'
z2[1] = '\u1234'
z2[2] = 'c'
- c = string(&z2)
+ c = string(z2[0:])
if c != "a\u1234c" {
print("create int array ", c)
panic("fail")
@@ -110,7 +110,7 @@ func main() {
z3[0] = 'a'
z3[1] = 'b'
z3[2] = 'c'
- c = string(z3)
+ c = string(z3[0:])
if c != "abc" {
print("create array pointer ", c)
panic("fail")