summaryrefslogtreecommitdiff
path: root/test/indirect.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-12-09 19:27:08 -0800
committerRobert Griesemer <gri@golang.org>2009-12-09 19:27:08 -0800
commit19586282282f5f59c80162c711cd31b94396a87e (patch)
tree292a7d26be6031010a9b4d9b8e30d160845f9411 /test/indirect.go
parent4bac20d23b62277fab6e422555c4dda60b648d10 (diff)
downloadgo-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.go9
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();
}