summaryrefslogtreecommitdiff
path: root/test/ken
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-10-07 12:31:31 -0700
committerRuss Cox <rsc@golang.org>2008-10-07 12:31:31 -0700
commit974ba2ebf751183e21899084d23c9ffed3a2fc02 (patch)
tree133422e9724c37fc7aac2fcf9f1c52b230af51ef /test/ken
parent949351c943fab12e0466d90925615e2199777914 (diff)
downloadgo-974ba2ebf751183e21899084d23c9ffed3a2fc02.tar.gz
update code to follow new semicolon rules:
* 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. /home/rsc/bin/addsemi and then diff+tweak. R=r,gri OCL=16620 CL=16643
Diffstat (limited to 'test/ken')
-rw-r--r--test/ken/chan.go2
-rw-r--r--test/ken/rob2.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ken/chan.go b/test/ken/chan.go
index 8913528a8..73f4a8bb1 100644
--- a/test/ken/chan.go
+++ b/test/ken/chan.go
@@ -65,7 +65,7 @@ send() bool
tots++;
c.sv = expect(c.sv, c.sv);
if c.sv == End {
- c.sc = nil
+ c.sc = nil;
return true;
}
return false;
diff --git a/test/ken/rob2.go b/test/ken/rob2.go
index f7bec7bb7..cca74e57a 100644
--- a/test/ken/rob2.go
+++ b/test/ken/rob2.go
@@ -134,7 +134,7 @@ func Get() int
peekc = -1;
} else {
c = convert(int, input[inputindex]);
- inputindex++
+ inputindex++;
if c == '\n' {
lineno = lineno + 1;
}