From 19586282282f5f59c80162c711cd31b94396a87e Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 9 Dec 2009 19:27:08 -0800 Subject: making some more non-gofmt'ed files save for new semicolon rule R=rsc, r http://codereview.appspot.com/171051 --- test/indirect.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'test/indirect.go') 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(); } -- cgit v1.2.1