diff options
author | Russ Cox <rsc@golang.org> | 2008-10-07 12:31:31 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2008-10-07 12:31:31 -0700 |
commit | 2e35ca6c33cd9c089b6536e9405e2f90a8ec101c (patch) | |
tree | 133422e9724c37fc7aac2fcf9f1c52b230af51ef /test/bugs | |
parent | 5cff795078a27a56b69a1fa878b3b72be12b60a6 (diff) | |
download | golang-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/bugs')
-rw-r--r-- | test/bugs/bug102.go | 2 | ||||
-rw-r--r-- | test/bugs/bug111.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/bugs/bug102.go b/test/bugs/bug102.go index 6ce4329fb..314a37f3d 100644 --- a/test/bugs/bug102.go +++ b/test/bugs/bug102.go @@ -16,7 +16,7 @@ func main() { if string(b1) != "hello" { panic("bad convert 1") } - var b2 = new([]byte, 5) + var b2 = new([]byte, 5); for i := 0; i < 5; i++ { b2[i] = b1[i] } if string(b2) != "hello" { panic("bad convert 2") diff --git a/test/bugs/bug111.go b/test/bugs/bug111.go index e49357aa9..39da9b4dd 100644 --- a/test/bugs/bug111.go +++ b/test/bugs/bug111.go @@ -17,7 +17,7 @@ export type Stucky struct { } func (s *Stucky) Me() Iffy { - ncall++ + ncall++; return s } |