summaryrefslogtreecommitdiff
path: root/test/ken/sliceslice.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-12-10 12:53:23 -0800
committerRobert Griesemer <gri@golang.org>2009-12-10 12:53:23 -0800
commit9e881380a86a61a84fdb9d478b5836b43eeafc25 (patch)
tree90f4a337216982bd1721572cced7062119dd475b /test/ken/sliceslice.go
parentae780b04f41ac629f07bf3561240c5e89e7004bb (diff)
downloadgolang-9e881380a86a61a84fdb9d478b5836b43eeafc25.tar.gz
make test/ken safe for optional semis
R=rsc, ken2, ken3 http://codereview.appspot.com/174042
Diffstat (limited to 'test/ken/sliceslice.go')
-rw-r--r--test/ken/sliceslice.go12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/ken/sliceslice.go b/test/ken/sliceslice.go
index 9c37dedbe..7b38082bb 100644
--- a/test/ken/sliceslice.go
+++ b/test/ken/sliceslice.go
@@ -14,8 +14,7 @@ var lb,hb int
var t int
func
-main()
-{
+main() {
// width 1 (byte)
lb = 0; hb = 10;
@@ -77,8 +76,7 @@ main()
}
func
-tstb()
-{
+tstb() {
t++;
if len(by) != hb-lb {
panicln("t=", t, "lb=", lb, "hb=", hb,
@@ -99,8 +97,7 @@ tstb()
}
func
-tstf()
-{
+tstf() {
t++;
if len(fy) != hb-lb {
panicln("t=", t, "lb=", lb, "hb=", hb,
@@ -121,8 +118,7 @@ tstf()
}
func
-init()
-{
+init() {
bx = make([]byte, 10);
for i:=0; i<len(bx); i++ {
bx[i] = byte(i+20);