diff options
Diffstat (limited to 'test/ken')
-rw-r--r-- | test/ken/chan1.go | 4 | ||||
-rw-r--r-- | test/ken/divconst.go | 1 | ||||
-rw-r--r-- | test/ken/modconst.go | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/test/ken/chan1.go b/test/ken/chan1.go index 5a59de1c0..2905e08c5 100644 --- a/test/ken/chan1.go +++ b/test/ken/chan1.go @@ -17,7 +17,7 @@ func r(c chan int, m int) { for { - select { + select { case r := <- c: if h[r] != 1 { panicln("r", @@ -28,7 +28,7 @@ r(c chan int, m int) } h[r] = 2; } - } + } } func diff --git a/test/ken/divconst.go b/test/ken/divconst.go index 34d7d430b..5801975eb 100644 --- a/test/ken/divconst.go +++ b/test/ken/divconst.go @@ -4,7 +4,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. - package main import "rand" diff --git a/test/ken/modconst.go b/test/ken/modconst.go index 7a9ebed0e..ad720f448 100644 --- a/test/ken/modconst.go +++ b/test/ken/modconst.go @@ -4,7 +4,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. - package main import "rand" |