fix: fix incorrect result output of closing-channels example

This commit is contained in:
nicholasxjy 2021-12-16 22:38:12 +08:00
parent 3397ebcf08
commit 3c3277aab2
2 changed files with 6 additions and 6 deletions

View File

@ -1,11 +1,11 @@
$ go run closing-channels.go
sent job 1
received job 1
sent job 2
received job 2
sent job 3
received job 3
sent all jobs
received job 1
received job 2
received job 3
received all jobs
# The idea of closed channels leads naturally to our next

View File

@ -155,12 +155,12 @@ we saw earlier.</p>
<pre class="chroma"><span class="gp">$</span> go run closing-channels.go
<span class="go">sent job 1
</span><span class="go">received job 1
</span><span class="go">sent job 2
</span><span class="go">received job 2
</span><span class="go">sent job 3
</span><span class="go">received job 3
</span><span class="go">sent all jobs
</span><span class="go">received job 1
</span><span class="go">received job 2
</span><span class="go">received job 3
</span><span class="go">received all jobs</span></pre>
</td>
</tr>