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/method.go | |
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/method.go')
-rw-r--r-- | test/method.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/method.go b/test/method.go index 7d4122d00..dcbc28c1e 100644 --- a/test/method.go +++ b/test/method.go @@ -40,7 +40,7 @@ func main() { var p P; var pp *P1; var t T; - var pt *T1 + var pt *T1; if s.val() != 1 { panicln("s.val:", s.val()) } if ps.val() != 2 { panicln("ps.val:", ps.val()) } |