diff options
author | Marek Šuppa <mr@shu.io> | 2013-09-04 11:30:50 +0200 |
---|---|---|
committer | Marek Šuppa <mr@shu.io> | 2013-09-04 11:30:50 +0200 |
commit | abb903caba70b2813cc2194d294ee8e802dbec15 (patch) | |
tree | b0dc50a8a78463f3d08dee3ad4e1e47ef49f908c | |
parent | 412b312c45ccb8922f92c4ee364819fb0add7734 (diff) |
chan chan string -> channel of string channels
-rw-r--r-- | go.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go.html.markdown b/go.html.markdown index 4db76a49..9ffe9ed5 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 |