From 2e35ca6c33cd9c089b6536e9405e2f90a8ec101c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 7 Oct 2008 12:31:31 -0700 Subject: 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 --- test/fixedbugs/bug055.go | 12 ++++++------ test/fixedbugs/bug067.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'test/fixedbugs') diff --git a/test/fixedbugs/bug055.go b/test/fixedbugs/bug055.go index cf9dcd7c8..a8b1a6cd2 100644 --- a/test/fixedbugs/bug055.go +++ b/test/fixedbugs/bug055.go @@ -7,15 +7,15 @@ package main func main() { - var i int - var j int + var i int; + var j int; if true {} { return } - i = 0 - if true {} else i++ + i = 0; + if true {} else i++; type s struct {}; - i = 0 - type s2 int + i = 0; + type s2 int; var k = func (a int) int { return a+1 }(3); ro: } 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 } -- cgit v1.2.3