summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug067.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-10-07 12:31:31 -0700
committerRuss Cox <rsc@golang.org>2008-10-07 12:31:31 -0700
commit2e35ca6c33cd9c089b6536e9405e2f90a8ec101c (patch)
tree133422e9724c37fc7aac2fcf9f1c52b230af51ef /test/fixedbugs/bug067.go
parent5cff795078a27a56b69a1fa878b3b72be12b60a6 (diff)
downloadgolang-2e35ca6c33cd9c089b6536e9405e2f90a8ec101c.tar.gz
update code to follow new semicolon rules:
* 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. /home/rsc/bin/addsemi and then diff+tweak. R=r,gri OCL=16620 CL=16643
Diffstat (limited to 'test/fixedbugs/bug067.go')
-rw-r--r--test/fixedbugs/bug067.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fixedbugs/bug067.go b/test/fixedbugs/bug067.go
index 451ebbbf3..fd22cd6f8 100644
--- a/test/fixedbugs/bug067.go
+++ b/test/fixedbugs/bug067.go
@@ -9,7 +9,7 @@ package main
var c *chan int
func main() {
- c = new(chan int)
+ c = new(chan int);
go func() { print("ok\n"); c <- 0 } ();
<-c
}