diff options
author | Robert Griesemer <gri@golang.org> | 2009-12-09 19:27:08 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-12-09 19:27:08 -0800 |
commit | 19586282282f5f59c80162c711cd31b94396a87e (patch) | |
tree | 292a7d26be6031010a9b4d9b8e30d160845f9411 /test/indirect.go | |
parent | 4bac20d23b62277fab6e422555c4dda60b648d10 (diff) | |
download | go-19586282282f5f59c80162c711cd31b94396a87e.tar.gz |
making some more non-gofmt'ed files save for new semicolon rule
R=rsc, r
http://codereview.appspot.com/171051
Diffstat (limited to 'test/indirect.go')
-rw-r--r-- | test/indirect.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/indirect.go b/test/indirect.go index cbe3e0df2..06c1dcce7 100644 --- a/test/indirect.go +++ b/test/indirect.go @@ -28,16 +28,14 @@ var b2 *[]int = &b0 var b3 []int = []int{1, 2, 3} var b4 *[]int = &b3 -func crash() -{ +func crash() { // these uses of nil pointers // would crash but should type check println("crash", len(a1) + cap(a1)); } -func nocrash() -{ +func nocrash() { // this is spaced funny so that // the compiler will print a different // line number for each len call if @@ -79,7 +77,6 @@ func nocrash() } } -func main() -{ +func main() { nocrash(); } |