diff options
author | Russ Cox <rsc@golang.org> | 2009-02-13 14:48:32 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-02-13 14:48:32 -0800 |
commit | a193f430ba881e07e25325a55fa4f8c47bd4c9e5 (patch) | |
tree | a3b6c6ab9f68981976738f0efc7988353d5a0d82 /test/initcomma.go | |
parent | d513b8157d41f0cd240cc6ad74925702c74fc73e (diff) | |
download | go-a193f430ba881e07e25325a55fa4f8c47bd4c9e5.tar.gz |
convert composite literals from { } to ( ).
only non-trivial changes are in
convlit1.go
golden.out
R=gri
OCL=25019
CL=25024
Diffstat (limited to 'test/initcomma.go')
-rw-r--r-- | test/initcomma.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/initcomma.go b/test/initcomma.go index 44053f145..f28c4a60f 100644 --- a/test/initcomma.go +++ b/test/initcomma.go @@ -6,10 +6,10 @@ package main -var a = []int { 1,2, } -var b = [5]int { 1,2,3 } -var c = []int { 1 } -var d = [...]int { 1,2,3 } +var a = []int ( 1,2, ) +var b = [5]int ( 1,2,3 ) +var c = []int ( 1 ) +var d = [...]int ( 1,2,3 ) func main() { if len(a) != 2 { panicln("len a", len(a)) } |