summaryrefslogtreecommitdiffhomepage
path: root/go.html.markdown
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2013-09-04 09:07:42 -0700
committerAdam Bard <github@adambard.com>2013-09-04 09:07:42 -0700
commit7694dddf06ec2cbb25ca8cc8720215a2f31908bf (patch)
tree454ec4f7a20dbe016825ddb88327b121ca0e0565 /go.html.markdown
parentbc12c626c8bd0b003c5e6e8bdb92410d7afd6e2b (diff)
parentabb903caba70b2813cc2194d294ee8e802dbec15 (diff)
Merge pull request #305 from mrshu/master
chan chan string -> channel of string channels
Diffstat (limited to 'go.html.markdown')
-rw-r--r--go.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/go.html.markdown b/go.html.markdown
index eca5dae0..456f0c19 100644
--- a/go.html.markdown
+++ b/go.html.markdown
@@ -251,7 +251,7 @@ func learnConcurrency() {
fmt.Println(<-c, <-c, <-c) // channel on right, <- is "receive" operator.
cs := make(chan string) // another channel, this one handles strings.
- cc := make(chan chan string) // a channel of channels.
+ cc := make(chan chan string) // a channel of string channels.
go func() { c <- 84 }() // start a new goroutine just to send a value
go func() { cs <- "wordy" }() // again, for cs this time
// Select has syntax like a switch statement but each case involves