summaryrefslogtreecommitdiff
path: root/test/chan/goroutines.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-12-19 03:05:37 -0800
committerRuss Cox <rsc@golang.org>2008-12-19 03:05:37 -0800
commit02431bc144fd0ee3cea7ee8a47a28eebcf7bebbe (patch)
tree183e8cd345f5f895d2cbc36dd8f8be93640303c3 /test/chan/goroutines.go
parent803b4ce450fdc923110e0526fbc3aeb2ad07cc63 (diff)
downloadgo-02431bc144fd0ee3cea7ee8a47a28eebcf7bebbe.tar.gz
change *map to map; *chan to chan; new(T) to new(*T)
fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
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;
}