summaryrefslogtreecommitdiff
path: root/test/chan/goroutines.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/chan/goroutines.go')
-rw-r--r--test/chan/goroutines.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/chan/goroutines.go b/test/chan/goroutines.go
index 3fd80f29b..afc5ead30 100644
--- a/test/chan/goroutines.go
+++ b/test/chan/goroutines.go
@@ -14,7 +14,7 @@ import (
"strconv";
)
-func f(left, right *chan int) {
+func f(left, right chan int) {
left <- <-right;
}
@@ -36,6 +36,6 @@ func main() {
go f(left, right);
left = right;
}
- go func(c *chan int) { c <- 1 }(right);
+ go func(c chan int) { c <- 1 }(right);
<-leftmost;
}