aboutsummaryrefslogtreecommitdiff
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
commit542099d78f36f1a23eb21fbca9dc6d3723fbdd25 (patch)
tree8340124f1181fcd9d5ca7b5b53c42336c6ace5d1 /test/indirect.go
parent5f5dcfbc155dddb3b07345682cfdd0511a317723 (diff)
downloadgo-542099d78f36f1a23eb21fbca9dc6d3723fbdd25.tar.gz
go-542099d78f36f1a23eb21fbca9dc6d3723fbdd25.zip
making some more non-gofmt'ed files save for new semicolon rule
R=rsc, r https://golang.org/cl/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 cbe3e0df2a..06c1dcce7b 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();
}