aboutsummaryrefslogtreecommitdiff
path: root/test/closure.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-02-13 14:48:32 -0800
committerRuss Cox <rsc@golang.org>2009-02-13 14:48:32 -0800
commit9f8f2e6130d7899b0f689232d173ea2e4441285c (patch)
treea3b6c6ab9f68981976738f0efc7988353d5a0d82 /test/closure.go
parent07244f7c8081669f33433385a1f81e2a8d8cb55d (diff)
downloadgo-9f8f2e6130d7899b0f689232d173ea2e4441285c.tar.gz
go-9f8f2e6130d7899b0f689232d173ea2e4441285c.zip
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/closure.go')
-rw-r--r--test/closure.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/closure.go b/test/closure.go
index 97361a1dfd..1bd0ef202e 100644
--- a/test/closure.go
+++ b/test/closure.go
@@ -76,13 +76,13 @@ func h() {
func main() {
go f();
- check([]int{1,4,5,4});
+ check([]int(1,4,5,4));
a := accum(0);
b := accum(1);
go g(a, b);
- check([]int{2,4,6,9});
+ check([]int(2,4,6,9));
go h();
- check([]int{100,200,101,201,500,101,201,500});
+ check([]int(100,200,101,201,500,101,201,500));
}