aboutsummaryrefslogtreecommitdiff
path: root/test/varinit.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-08-17 13:30:22 -0700
committerRob Pike <r@golang.org>2009-08-17 13:30:22 -0700
commit74dd0ab670751feca69ca1aaf4db9859c5e52b41 (patch)
tree971cc7e3c955465162133ad90062126ba518107a /test/varinit.go
parent3e804ba7a71576ec042cf7c22bf3b53b92b0eb60 (diff)
downloadgo-74dd0ab670751feca69ca1aaf4db9859c5e52b41.tar.gz
go-74dd0ab670751feca69ca1aaf4db9859c5e52b41.zip
fix up some irregular indentation
R=rsc OCL=33382 CL=33391
Diffstat (limited to 'test/varinit.go')
-rw-r--r--test/varinit.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/varinit.go b/test/varinit.go
index a494100514..004f9c01b2 100644
--- a/test/varinit.go
+++ b/test/varinit.go
@@ -7,14 +7,14 @@
package main
func main() {
- var x int = 1;
- if x != 1 { panic("found ", x, ", expected 1\n"); }
- {
- var x int = x + 1;
- if x != 2 { panic("found ", x, ", expected 2\n"); }
- }
- {
- x := x + 1;
- if x != 2 { panic("found ", x, ", expected 2\n"); }
- }
+ var x int = 1;
+ if x != 1 { panic("found ", x, ", expected 1\n"); }
+ {
+ var x int = x + 1;
+ if x != 2 { panic("found ", x, ", expected 2\n"); }
+ }
+ {
+ x := x + 1;
+ if x != 2 { panic("found ", x, ", expected 2\n"); }
+ }
}