summaryrefslogtreecommitdiff
path: root/test/chan/select3.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/chan/select3.go')
-rw-r--r--test/chan/select3.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/chan/select3.go b/test/chan/select3.go
index d919de3e0..847d8ed37 100644
--- a/test/chan/select3.go
+++ b/test/chan/select3.go
@@ -1,10 +1,10 @@
-// $G $D/$F.go && $L $F.$A && ./$A.out
+// run
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// Tests verifying the semantics of the select statement
+// Test the semantics of the select statement
// for basic empty/non-empty cases.
package main
@@ -197,13 +197,13 @@ func main() {
})
testBlock(never, func() {
select {
- case x := <-closedch:
+ case x := (<-closedch):
_ = x
}
})
testBlock(never, func() {
select {
- case x, ok := <-closedch:
+ case x, ok := (<-closedch):
_, _ = x, ok
}
})