summaryrefslogtreecommitdiff
path: root/test/closure.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-03-03 08:39:12 -0800
committerRuss Cox <rsc@golang.org>2009-03-03 08:39:12 -0800
commit518ebed3d37d9e2ca3092b9fef3e8b7f338dff8e (patch)
tree028f4f1a5f6b78795c1a1ef840b49c7da342edd1 /test/closure.go
parentdab379ca0d53983fc0aa6184a8faf409fa0aa297 (diff)
downloadgo-518ebed3d37d9e2ca3092b9fef3e8b7f338dff8e.tar.gz
Automated g4 rollback of changelist 25024,
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
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 1bd0ef202..97361a1df 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});
}